midi noteout to multiple channels?

sleeplesswaves's icon

Hi all,

I'm generating random midi notes and sending them to noteout. But I have other sfplay~ objects sending audio samples to 12 different channels on dac~. I want to send the midi notes out to all 12 channels as well, not just the default L/R. Any ideas?

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

Here's the patch:

Thanks!

broc's icon

Basically you need to replace [midiout] by [vst~] objects loaded with appropriate instruments (eg. DLSMusicDevice on Mac). Then you can route the audio output of those instruments to different channels.

sleeplesswaves's icon

@broc,

Thanks! I'm getting closer now. I have the midi notes going through the DLSMusicDevice to a [vst~] and then to [dac~] in 6 channels.

What I can't figure out is how to change the instrument selection now. It's set to piano and I'm not sure how to change the timbre. I'm sure this is something simple, but I can't find the right place.

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

The test patch:

Anyone know where to change this?

Thanks!

broc's icon

For instrument selection send the message [midievent 192 $1] where $1 is the program number.

sleeplesswaves's icon

@broc,

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

Excellent! That did the trick, thanks so much. For anyone else interested, here is the test patch incorporating this: