Turn off a gate~ exactly when rate~ reaches 1.

Mar 14, 2013 at 4:42am

Turn off a gate~ exactly when rate~ reaches 1.

Hi there,
I guess I’m missing something super simple here but I can’t make this work.
I would love to turn off a gate~ exactly when rate~ reaches its higher value, i.e. 1.
I’ve tried with [delta~] [< =~ 0.] [edge~] using the left side of edge~ to trigger 0 and turn off the gate~ in Max.
But when I leave the signal domain with edge~ I loose the sample accuracy I need.
What is the best way to do that in signal?
Merci beaucoup
Florent

#67071
Mar 14, 2013 at 4:44am

Something like this but staying in the signal domain:

– Pasted Max Patch, click to expand. –
#241381
Mar 14, 2013 at 10:44am

Something like this?

– Pasted Max Patch, click to expand. –

sorry, didn’t look at your patch and did’t test mine.. really no time right now. Hope it helps anyways!
Cheers!

#241382
Mar 14, 2013 at 3:03pm

Hey, thanks a lot for your answer.
The [!-~] is a good idea, the only thing is that the gate~ reopens as soon as rate~ goes back to 0. and I need the gate~ to remain open or closed.
I’ve found something like this which works:

– Pasted Max Patch, click to expand. –

Now, I am just not sure about the sequence [delta~] and [

#241383
Mar 14, 2013 at 9:09pm

Can’t you just run the rate~ at half speed? Then you can add a [>~ 0.5] to your patch and you’re there.

#241384

You must be logged in to reply to this topic.