• 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: MusicDevice instrument IDs and MIDI instrument selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: MusicDevice instrument IDs and MIDI instrument selection?
      • From: Bill Stewart <email@hidden>
References: 
 >MusicDevice instrument IDs and MIDI instrument selection? (From: Pete Yandell <email@hidden>)

  • Prev by Date: Re: Playing 96 kHz AIFF files with Quicktime player
  • Next by Date: Re: Underflow causes permanent silence
  • Previous by thread: MusicDevice instrument IDs and MIDI instrument selection?
  • Next by thread: Re: MusicDevice instrument IDs and MIDI instrument selection?
  • Index(es):
    • Date
    • Thread