Triggering Different Events in Order

dwerfelmann's icon

I am working on a composition that uses many different patches within a single patcher. I would like to be able to trigger different parts of the patcher (send a bang) in a specified order with my MIDI controller pedal.

How do I go about sending out a bang message to different parts of my patch in a specified order (e.g. the first time I hit the pedal, the audio turns on. The second time I hit it, the soundbite begins to play, the third time...)?

I'm using Max5 on a Macbook Pro, using a sustain pedal connected through a midi interface.

Thanks a lot.

nnneuromodulator's icon
EasyMac's icon
Max Patch
Copy patch and select New From Clipboard in Max.

If you want more flexibility in event ordering,
I would use [forward].

EasyMac's icon

Yeah, that'll work.
I'd never even heard of [qlist].

Andrew Benson's icon

There's a ton of ways to approach this. Think about objects that route messages and control flow like select, gate, route, router, switch, cycle, bucket, spray, send/receive/forward. Then think about objects that allow you to map one number to another like table, itable, multislider,coll, function, funbuff. Then objects that allow you to count like counter, incdec, +, accum.

seejayjames's icon

that's like a whole semester of programming in one paragraph. brilliant

dwerfelmann's icon

Tremendously helpful, everyone. Thanks!