Quantize a gate
How can I go about quantizing a gate signal so it happens the next interval (16th note etc)? The gate I'm trying to quantize comes from a trig button.
Looking at this example I can see how you can quantize an on/off signal with s&h https://patchstorage.com/euclidean-launcher-v1/, but quantizing a short pulse eludes me.
Thanks for the thoughts!
Note: If there are multiple gates before the next interval, I'd expect only one gate to send.
Comments
This should work...won’t give you the gate length. Gate from midi to cv goes into SH input...its
Thanks for the reply! This is pretty close. The problem I'm still facing is that the midi gate has to be active when the gate+velocity quantizing comes around. If you quickly trigger it the gate is lost.
(I'll brain on this more when I'm not bogged down with work :P)
Drambo's charm is that there are probably 10 different ways to solve the same problem.
Adjust the length of the Graphic Env to be a little shorter than the duration of a quarter beat.
Oh yea this works pretty good! Especially because you can set the graphic env to be based on beats instead of time, so it'll consistently end early enough even if bpm changes. I forgot about this part of graphic env and it's very useful in a number of situations in my patches. Thanks!
I wish we could modulate the Graphic Env knob (or set the clock source), then I could map a knob to all the instances for quantization... but I don't really need that. Once we get morphs maybe I'll use them for this.
@giku It would be cool to have a full beat option for graphic env. Or the ability to provide the clock source. Its the best source of a bpm-dependent envelope but can't get very long.
Agreed, also agreed with the time being a possible modulation destination.
Glad I could help @quartzite 👍🏼
Somewhat related question: is there any way to get an "on load" gate out of Drambo other than p-locking a "once condition"?
Edit: I bet this can be done via an AUv3 if nothing else.
"On load" of what? Opening a project without hitting Play?
On load of project, before hitting play. When I posted the previous one, I thought on-play would be ok but its not working with what I'm doing.
My current plan is to just use an instance of streambyter to generate a midi note on load that I can then turn into a gate.
Nevermind I got something that works for my needs. I just p-lock a knob to off with a once condition. The only limitation is that if you stop-start playback, the signal returns to 1. But I'm ok with that for now.
A not very elegant way with D modules only :)
Transient detector will drop a single trig on load.
Oh this works great! I think you can even use a normal knob, it sends its value on load to the detector and you get a trig. Genius!
Yep, that works too... and looks much better :)