Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is MIDI channel stored #1

Open
GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments
Open

where is MIDI channel stored #1

GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 1 Apr 2008 at 3:50

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 11 Apr 2008 at 4:00

@GoogleCodeExporter
Copy link
Author

Thanks. That's what I needed!

Original comment by [email protected] on 18 Apr 2008 at 8:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant