BPM clock divider note lenght AD
Ralph van der Steur asks:
https://www.facebook.com/groups/1948697825179185/?multi_permalinks=5731299163585680
“I’m trying to create a generative patch in VCV rack, but want to have it BPM synced. The idea is to have it play notes in sync with a clock with “random” lengths that are quantized to multiples of for example 1/16th notes. Each note should also complete one cycle of an AD envelope within it’s length, so the rise and fall times of the envelope should be synced in some way too.
What would be a good way to create this effect?”
I tried a patch in VCVRack (2.1.2.) to solve this:
– Use a BPM clock source that output triggers (JW Modules: Simple Clock).
– Into a clock divider (Count Modula: Clock Divider).
– Into a voltage controlled switch (Count Modula: Switch 8 1).
– Into a Attack Decay envelope generator (Bogaudio: AD).
– Use a Control Voltage to select the divided clock in the voltage controlled switch (I used Bogaudio: Offset, for testing). A larger CV selects a larger division output ( = slower tempo, longer note lenght).
– Use that same CV for the attack and decay times of the envelope generator. Scale the attack and decay times so that the envelope ends just before the new trigger happens.
– Use the AD envelope for your sound source.
clock -> clock divider -> voltage controlled switch (Output selected by CV1) -> Attack Decay env (AD times set by CV1)
Libraries used (all free): VCV Fundamental, Bogaudio, Count Modula, JW Modules.
Note:
If you want better control over the attack and decay times, add two sequencers that are synchronised with the clock divider.
Program one sequencer with the attack CVs and the other with the decay CVs that you need.
The Basic Sequencer from Count Modula is a good candidate for this to “pair” with the clock divider.
I’ll try this later…
