Random CV on note change

greetings!

scenario:

  • acoustic instrument coming into my Dwarf
  • want to trigger the Random CV Generator at some note changes

ideas:

  • instrument into Audio to CV Pitch plugin
  • to CV Attenuverter Booster (to scale the range of values)
  • to CV Round
  • take “Rounded” outputs from CV Round (this will give me a chain of stable values which change occasionally as incoming notes change - i can scale things such that i’ve got changes in the Rounded output at various points in my acoustic instrument range)

but then i get stuck:

  • how do i detect each time the Rounded output changes, and cause a trigger of the Random CV Generator? i’m not seeing appropriate comparators or “CV math” operators to detect those changes.

any ideas?

…many thanks in advance!..

1 Like

alrighty… talking to myself here, in case it’s ever useful to someone!..

this solution may not be the most elegant, but it works. we can sort of do CV math (well, only addition), so:

  • make two versions of the Rounded output, such that when they are added they will yield something larger than 1V while one change is delayed, but yield <1V when both values are stable

…like this:

  • “CV Round” Rounded output
    to
    “CV Attenuverter Booster” X2 (mult 2 and mult -2)

then…

  • send the mult -2 Attenuverter Booster to a “Slew Rate Limiter” (aka “fake delay”)

the default 0.1ms rise/fall times give us decently quick response, while the 2x multiplication factors give us enough difference to always yield >1V difference, even though the short slew does some truncating of the true value range.

then…

  • connect the mult 2 and the Slew-Limited mult -2 signals to a “CV ABS” input, so they get added and made positive

without the absolute value step, of course we get negative added values when the Rounded value decreases - we need positive values to trigger the Random generator. since we’re doubling both Rounded values (one negative and one positive), the sum settles to 0V after the Slew Limiter has finished.

then…

  • connect the “CV ABS” output to the “Random CV Generator” input.
1 Like