Forums > MaxMSP

trigger different values in signal from an impulse


Jan 19 2013 | 9:15 pm

Hello dearest forum,

From an impulse (short peak at 1 like click~) I need generate integer values in signal like 0, 1 and 2. It needs to be in signal all the way through for sample accurate timing issues.

Is there an equivalent of the object int in signal? Something that could keep an integer and then trigger it only when it receives the impulse?

Something like that works but it leaves the signal domain:


-- Pasted Max Patch, click to expand. --

any leads would be appreciated
thanks

Jan 20 2013 | 2:06 am

[sah~]

Jan 22 2013 | 5:40 pm

Thanks a lot and sorry for my ignorance…

Jan 22 2013 | 6:39 pm

Also, you can use rampsmooth~ 1 22050 between click~ and sah~ if you want to create a "time-out" effect. ("only allow if there’s been no clicks for half a second")

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

Forums > MaxMSP