Forums > MaxMSP

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

March 14, 2013 | 4:42 am

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


March 14, 2013 | 4:44 am

Something like this but staying in the signal domain:

– Pasted Max Patch, click to expand. –

March 14, 2013 | 10:44 am

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!


March 14, 2013 | 3:03 pm

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 [


March 14, 2013 | 9:09 pm

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


Viewing 5 posts - 1 through 5 (of 5 total)