Bang and (posssibly) Gate problem

nipper's icon

Hi everybody,

I have an problem and wonder if there is already an existing object that I can use... I'm looking for something that will hold a bang message, and only output the bang when certain criteria are met.

For example, I have a counter that runs from 1 to 6. I would like the bang to be outputted whenever the counter hits 1, however the original bang message can be sent at anytime (e.g. the button could be pressed when the counter is at 4, but I want the bang to actually output when the counter is at 1).

Is there anything that can do hold the bang and release when the given criteria are met? I have had a look through some of the help files, but no luck, and I have tried using a sequence of switches which just looks confusing and is ultimately unsuccessful.

Thanks for your time, any help/pointers would be fantastic.

Nipper

jamesson's icon

Delay and or lineto

nipper's icon

Thanks for the reply Jamesson,

I don't think delay will work... My intention is to have a sequence of events that are triggered when the counter reaches different time intervals (for example at 1, 5 and 6). These must occur in the order 1, 5, 6, and the initial bang will open a switch allowing these events to be triggered.

However, the switch must only open when the counter is at 1, and close again when the counter has past 6 (which I will do using a small delay). So I don't think delay helps in this instance, likewise how line would help.

Do you/anybody have any other suggestions?

Thanks again

Nipper

tegid o's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Counter and sel?

nipper's icon

thanks tegid o, I had that much...

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

Please take a look at this rough patch for an idea of what I am getting at...

Thanks again!

goingdeaf's icon

I'm finding it difficult to see what you want exactly. Do you want the bangs to be outputted after the first cycle of the counter (after six bangs in this case)? Does the gate remain closed until here?

nipper's icon

Actually, I think I have got it - it needs the onebang object with a select object, so that any bang received won't be outputted until it hits the one on the next cycle. Thank you all for your help

Nipper