jimarnold / noisevst

Automatically exported from code.google.com/p/noisevst
1 stars 1 forks source link

where is MIDI channel stored #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
not sure anyone reads this, but...here goes.

I want to find the MIDI Channel of the MIDI event. I follow the humble 
comments in MIDIevent.cs and EventMap.cs to the Steinberg include file 
called aeffectx.h and the struct called “VstMidiEvent”. But no where in 
these files is there reference to the MIDI channel (i.e. 1 through 16). 
Apparently the events that entered into the queue (Queue<IndexedMidiEvent> 
events) are from different midi channel, but I don’t see where this is 
stored. Any ideas.

Original issue reported on code.google.com by m...@epicycle.org on 1 Apr 2008 at 3:50

GoogleCodeExporter commented 9 years ago
Yeah it's all pretty arcane :-)  I suggest you take a look at the MIDI spec (try
http://www.borg.com/~jglatt/tech/midispec.htm).  In short, the first byte of a 
MIDI
messages is the status byte.  For Note On messages, the high nibble of this byte
describes the message type (ie note on) while the low nibble sets the channel.  
So, a
status byte with a value of value 0x92 translates to Note On on channel 2.  

Hope that helps.

Jim

Original comment by jimski3...@gmail.com on 11 Apr 2008 at 4:00

GoogleCodeExporter commented 9 years ago
Thanks. That's what I needed!

Original comment by m...@epicycle.org on 18 Apr 2008 at 8:19