Using a VST instrument in max5/sending midi note data?

genfu's icon

I'm abit confused about how you send MIDI note data to a vst~ where you are using an instrument rather than a VST effect to process audio. Is this possible? Is it just a case of sending raw midi data to a 'prepend midievent' object into vst~ ?

Roman Thilenius's icon

in max4 it is not supportet, in max5 you might just try it and see if it works.

i know that there are exceptions, but if a vst 2.1+ effect plug-in has midi
input then often is it for "regular" parameters, which can also be adressed
as such in [vst~], i.e. "7 0.1".

Florent Ghys's icon

hi
you have to send the message midievent $1 $2 $3 $4
$1 is the channel number (beginning at 144 = channel 1)
$2 is pitch value (0-127)
$3 is velocity value (0-127)
I don't know what is $4 but I always set it to 0
it works this way with most of virtual instruments in Max

genfu's icon

thanks I will try this out

spamisevil@shaw.ca's icon

I've tried this out, but it seems like a lot of work to get notes into a vst instrument. I managed to get single-note recognition but it will take more time to add polyphony. Has anyone built a robust NoteInput object that will achieve this and/or an object that will allow my to play a vst instrument with MIDI controller? I'm not satisfied with either the Rewire or Soundflower option for the realtime software I'm trying to make that includes playback from Kontakt2

Luke Hall's icon

Try the patch below, assuming the vst instrument is polyphonic you shouldn't have any problems.

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

lh