Re: Documentation?
Re: Documentation?
- Subject: Re: Documentation?
- From: "Tod E. Kurt" <email@hidden>
- Date: Tue, 22 Jun 2004 22:55:50 -0700
The MIDI Spec has all that stuff. Harmony Central has a good meta-page
containing the full spec and summaries.
http://www.harmony-central.com/MIDI/Doc/doc.html
To decode the midi message you're interested in, look at this table:
http://www.harmony-central.com/MIDI/Doc/table1.html
and see that the first byte '0xB0' means "channel 1 control change".
Then look in this table:
http://www.harmony-central.com/MIDI/Doc/table3.html
for the meaning of the bytes '10 00' , which is "Pan 0". And for Pan:
0=left, 127=right, 64=center.
Most all MIDI messages are three bytes like that one above. The first
byte contains the channel and the major 'type' of event (note on/off,
program change, cc, etc.). The 2nd & 3rd bytes are parameters
particular to each 'type'. For example, note-on messages use the 2nd &
3rd bytes for note number and velocity, respectively.
-=tod
--
Tod E. Kurt
email@hidden
http://todbot.com/
From: Steve Gehrman <email@hidden>
Subject: Documentation?
Date: Tue, 22 Jun 2004 19:24:24 -0700
To: email@hidden
I'm looking at the sample code and see this stuff...
// pan channel 1 hard left
chmsg.status = 0xB0;
chmsg.data1 = 10;
chmsg.data2 = 0;
chmsg.reserved = 0;
MusicTrackNewMIDIChannelEvent(track, 0., &chmsg);
// pan channel 2 hard right
chmsg.status = 0xB1;
chmsg.data1 = 10;
chmsg.data2 = 127;
chmsg.reserved = 0;
MusicTrackNewMIDIChannelEvent(track, 0., &chmsg);
Where is this stuff documented? How do you know what to put in this
status field and the data fields?
-steve
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.