Scan for data stram

Frans-Jan Wind's icon

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?

Max Patch
Copy patch and select New From Clipboard in Max.

Here's en excerpt of my idea

pdelges's icon

Is it really CPU consuming?

Max Patch
Copy patch and select New From Clipboard in Max.

Here is a way without metro:

Frans-Jan Wind's icon

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.

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Or even: