instant bang from audio out.

teqy's icon

Hi there.

How can i receive an instant bang or value as soon as a signal comes out of a cycle~ or (*~ 0.2) object for example?

I tried meter~ to a .float and a bang; but meter samples every 10ms

I think peakamp~ goes down to 1 ms= 44.1 samples (at 44.1khz)

But can I get a value from the first sample to exit an audio out?

thanks

mzed's icon

In short, no.

edge~, or something like it, might be your best bet, but the max scheduler is simply not sample-accurate. If you need that kind of temporal accuracy then you should stay in the signal domain.

teqy's icon

Thanks mzed : )

teqy's icon

Thanks mzed, I shall check out edge~ : )

Peter McCulloch's icon

Are you looking for the presence of signal or are you looking for a value or range of values?

If it's the former, use adstatus to see if audio processing is on.

teqy's icon

hi,

Thanks it was just to see when a signal came out of a port asap. I shall be trying out edge~ later tonight.

side note:
I just noticed, I sent two messages above, this forum is slow when sending messages.
no confirmation for ages after hitting send, my Internet is fast and my pc. unusual this has been going on for so long. not just for me but others too.