MIDIEVENT FOR VST USE

jan300's icon

Hi!
I am kind of new to Max and I was wondering how to use the midievent message in order to send some MIDI data to the VST.
I already have the data that will trigger the notes in the VST but I am not sure on how to use that message, I read something about midievent 144 $1 $2, but I still could not do it. I watched the vst object and I only got to open the VST i wanted to use but nothing about the message. And also if i want to trigger different VST with different bangs, how would it change?
I hope I explained myself.
Thanks for your help!!

Max Gardener's icon

Open the help file for the vst~ object. Choose the tab labeled Instruments.

Roman Thilenius's icon

i doesnt change. two different vst objects still each expect midievent 144 60 127 for "note on channel 1"

Peter Ostry's icon

Easiest way:
Take your MIDI via [midiin], connect it to [midiparse] and cable it's rightmost output ('midievent') to the left [vst~] input. [midiparse] does the formatting for you.

If you have internal generated notes, first send them to [midiformat], from there to [midiparse] and take the 'midievent' output again. Function: [midiformat] converts to raw MIDI stream, the following [midiparse] converts to 'midievents'. Notes, Pitch, Control Messages, everything.

(The 'midievent' output of [midiparse] is rather new, you may have to upgrade if your Max version doesn't have this feature.)

jan300's icon

Thanks! Using the vst~ object's instrument tab helped me!