Forums > MaxMSP

midi noteout to multiple channels?

February 18, 2012 | 3:43 am

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?

Here’s the patch:

– Pasted Max Patch, click to expand. –

Thanks!


February 18, 2012 | 10:16 am

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.


February 18, 2012 | 7:38 pm

@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.

The test patch:

– Pasted Max Patch, click to expand. –

Anyone know where to change this?

Thanks!


February 18, 2012 | 9:18 pm

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


February 18, 2012 | 11:22 pm

@broc,

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

– Pasted Max Patch, click to expand. –

Viewing 5 posts - 1 through 5 (of 5 total)