midievent messages to VSTi

davidestevens's icon

Anyone know what message(s) I need to send to vst~ for pitchbending a vsti?

And while I'm at it, is there a list somewhere of what all the different messages are? I know [144 $1 $2] 'cause it's in the help docs, but I've never found a comprehensive list of what else the other messages are. (I think 145 is note on channel 2 yes? Worked that out once by trial and error!)

thanks

Florent Ghys's icon

I don't know about pitchbending. I guess it depends of your vsti. Send a "params" message and check out which one controls the pitchbend.

About notes message :

144 = channel 1
145 = channel 2...
$1 = pitch
$2 = velocity

Roman Thilenius's icon

145 just means "port 1 channel 2"

davidestevens's icon

Does that mean that midievent is only for note on/off? or do numbers other than 144 and up do something (along with their appropriate additional variables)?

PhiDjee's icon

Look at [midiparse] maxhelp and you'll find {midievent 224 $1 $1} for the pitch-bend.
224= chan 1,
225= chan 2,
etc.

HTH,
PG

davidestevens's icon

Thanks Phil - that's _exactly what I've been looking for (for ages!).

Roman Thilenius's icon

the 144 alone doesnt do anthing, it is just the channel.

which is why it is followed by arguments for note and velocity. :)

it is just analog to how midi data looks, except that device model and device ID is missing.

Julien Bayle's icon

Summary of MIDI Status & Data Bytes
http://www.harmony-central.com/MIDI/Doc/table1.html

Summary of MIDI Note Numbers for Different Octaves
http://www.harmony-central.com/MIDI/Doc/table2.html

Status Bytes 176-191; Control and Mode Changes (per channel)
http://www.harmony-central.com/MIDI/Doc/table3.html

is a good start to understand midi bytes.

davidestevens's icon

Very useful. Thanks Julien