• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Documentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Newbie has idea, not sure where to start
  • Next by Date: Re: Device Sync (was Re: Multiple HALAOUs don't get along?)
  • Previous by thread: Documentation?
  • Next by thread: Re: Documentation?
  • Index(es):
    • Date
    • Thread