Re: MusicDevice instrument IDs and MIDI instrument selection?
Re: MusicDevice instrument IDs and MIDI instrument selection?
- Subject: Re: MusicDevice instrument IDs and MIDI instrument selection?
- From: Pete Yandell <email@hidden>
- Date: Wed, 4 Sep 2002 12:36:42 +1000
Found the answer to my own question. In MusicDevice.h:
The InstrumentID that is passed in to PrepareInstrument can be
encoded in a manner that allows instruments to be
read from MIDI based sample collections (which both DLS and
SoundFont formats are)
In that case, the ID is formatted as:
0xMMLLPP
MM is the MSB of a bank select control change message (range
0->127 when shifted down)
LL is the LSB of a bank select control change message (range
0->127 when shifted down)
PP is the 0->127 value of a program change message
On Tuesday, September 3, 2002, at 10:33 PM, Pete Yandell wrote:
>
Is there any sort of official interface for mapping between
>
MusicDevice instrument IDs and the MIDI bank and instrument selection
>
values that correspond to them?
>
>
I reverse engineered the way this worked in 10.1, but now my code
>
seems to be a little off under 10.2. Rather than reverse engineer it
>
a second time, I'd like be able to do it properly.
>
>
Pete Yandell
>
http://pete.yandell.com/
>
_______________________________________________
>
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.
>
>
Pete Yandell
http://pete.yandell.com/
_______________________________________________
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.