[better way/tune up?] rythmical variance meter

Tiago Morgado's icon

Hi guys

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

I've just coded this simple rythmical variance meter I've started by placing a timer with a bang connected to both inlets that tells me the interval of the last two events. I've then used stream 2 unpack and float division for getting the ratio between the events passed it thru a abs and then once again a stream 2 with an unpack 0 0 that goes thru a subtraction for metering the variance and then a zl stream 10 with a zl sum and a division by 10 to tell me the actual index of rythmical variance.. can you tell me if there is a better way to do this, or how can I improve this?