Midi Trigger Audio

slinky's icon

Hi Everyone

I am in the middle of writing a piece that require live triggering of sound. I was going to put this into QLab, but did not realise how much it is! Would anyone please be able to help me to build a patch where a midi pedal can cue audio sounds. I also want the patch to fade out the previous sound whilst the next one is coming in. I have not used Max in a while, so my brain is a little rusty!

Any help is much appreciated!

Source Audio's icon

post details,

midi input kind, what is meant by cue ?

in a simple world you would have a list with audio files,

and midi message that would do something with that list,

like start playing next file in the list

no matter if there is playback going on or not ...

or something else.

Christopher Dobrian's icon

Here's an old example that might be helpful:

You might find other relevant examples on that same site:

slinky's icon

Thanks Christopher! How would I go about altering this so that it goes through the cycle for example 1 always plays first, then onto 2, then onto 3 so on and so forth?

Source Audio's icon

Autopopulate umenu with sound files,

then use 0 to start with, and then next message to play files in sorted order

Source Audio's icon

here one simplest example, it does not care if playback is running or not,

but it does not matter really, unless you need to take that into account as well.

you can add loop playback, or not ...

trigger example is set to midi note C4

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