Hello everybody, I am new here but I possess an issue of which I would greatly appreciate some help with. I am working in Max MSP, I am not sure which exact version, but basically I need to know how to make it so that when one of my audio events are triggered, it triggers a counter, but causes the counter to jump by 3 instead of 1 and without triggering any of the integers in between?
I have attached a screenshot of the portion of my patch that I need assistance on, and in reference to the photo, I need the left column of triggers to cause the counter to increase by 3, and I need the right column to decrease by -2.
If need be, I can post the patch itself if that will help come to a solution.
As a start, to increment in 3s you could multiply counter’s output by 3 or alternately use an [Uzi 3] before the counter to increment the counter 3 times each time a bang is received. No doubt there are also more elegant ways to work this out depending on what you are trying to achieve at the end…
Think about it like its Mortal Kombat because that is basically what I am trying to do. If the left side wins the first round, it will play an audio file then "bang when done playing" the "2nd round, FIGHT!" and so on.. I then ran into my initial problem of what happens when the right side wins? So I figured out that when the left side wins, it bangs the counter up by 3, and when the right side wins, it decreases the counter by 2 so that the numbers you see in my "sel" box are unique and are going to be assigned to certain audio files. Like i said, I can post a bigger portion of my patch than what is shown in the screenshot, if you would like to mess around inside and possibly come up with a better solution?
How would I incorporate it into this? So that the left column adds 3, the right column subtracts 2, and no integers in between will be triggered?
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1873.3oc6c0zaiaCD8ryuBA0qoAjC0msm5kdo.8RAZOrXQ.sshC6JKYHImre fs+1qDIksjiTLkniB0l.rPdWJIp273vYFR8r2uc0B6koeNJ215Wr9f0hEe6p EK3MU0vB4+dg8V5mWESy4Wl81n7b5lH6qEmqH5yE71yiJrP0slreKKINpfeK frwczhU2yR1baVzpBwiz008Fz0VAN7ObvUGgxiVe7XGktuntmvxVYq4Oxzk+ 6OCHR8C8tzjhD51H949sLFMt9Lhtn3K6hDOVa6COfpaJm8U9IvN2fpZ86WcU 0gq0jQ9YXvzAgyC9d7OHvMtCkNvfoxFjgRFNg5RF.x80lMJw3xnrNMc7YM8P wzBWDeZAoWSG5xzCFgoyRJru1xdIMYykkEhdrDTOwknvZoEajbiLjAw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