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~ ?
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
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