Forums > MaxMSP

Scan for data stram

March 1, 2012 | 2:37 pm

Hello,

I’ve got an stream of lists (1 list every 20-30ms). I need to test if the stream is running or not. I’ve made a method using a additional [metro] object timing every 500ms using a [timer] object

I find this a very CPU consuming method. Has any of you have an idea of a approach not using a metro object?

Here’s en excerpt of my idea

– Pasted Max Patch, click to expand. –

March 1, 2012 | 3:31 pm

Is it really CPU consuming?

Here is a way without metro:

– Pasted Max Patch, click to expand. –

March 1, 2012 | 3:59 pm

My guess is your method is faster. I’ve been thought to have as little as possible cycles in the max scheduler, which your method provides!

Thank you.


March 1, 2012 | 8:47 pm

Or even:

– Pasted Max Patch, click to expand. –

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