Help with tagging notes with a random tag

chapelier fou's icon

Hi, i'm stuck at trying to make this :

the main goal is to send MIDI note messages to several hardware synths randomly.
To keep the logic from the rest of the patch, i would need to format the messages like this :

"tag-note-velocity"

My problem is that just using [pack 0 0 0] and [random], i lose track of note-on messages and i don't associate note-on to note-off messages.

Any idea ??

Thanks for checking,

Louis

Bill 2's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Separate note-on and note-off pitches, make a random tag only for the note-on pitches, use [offer] to make the note-offs use the same random tag as the corresponding note-ons, velocities don't need to be changed. I think this does what you want, but I haven't thoroughly tested it:

chapelier fou's icon

I'm checking your patch. Thanks very much !

chapelier fou's icon

Brilliant ! i add [offer] to my 2017 list of max objects.

Bill 2's icon

You're welcome, Louis. I've always found [offer] to be the perfect object for stuff like this.