Forums > MaxMSP

reading a single value using metro

Oct 18 2013 | 9:39 am

I need to read a variable from an input so that I get a single value every X seconds.
this value should pass trhough an object to check if its value is 1 or 2 and then each of these variables triggers a counter.
I tried many objects, but I always get a lot of bangs on the output as I send a bang to the input. I need to get only one number each time the metro sends a bang.
What’s the best way to do so? I’d been trying for some days and can’t figure out a solution.

Oct 18 2013 | 11:46 am


Oct 18 2013 | 11:52 am

you can view part of the code in attachment

  1. contador.maxpat
Oct 18 2013 | 12:14 pm

I’m not sure what the audio side is supposed to do. But, I changed your metro counter’s carry flag mode to bang, and swapped your gate for an int object.

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


Oct 18 2013 | 12:35 pm

thanks a lot vichug!

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

Forums > MaxMSP