Re: Apple DLS only audible on first few instruments
Re: Apple DLS only audible on first few instruments
- Subject: Re: Apple DLS only audible on first few instruments
- From: Bill Stewart <email@hidden>
- Date: Mon, 2 Jun 2003 17:22:40 -0700
The ID's are formatted as follows:
The ID field is a 32 bit number, but only the 24 bits are used:
0xMMLLPP
Where MM is a 0-127 value for the Most Significant Byte of the Bank
Change Controller message in MIDI
Where LL is a 0-127 value for the Least Significant Byte of the Bank
Change Controller message in MIDI
Where PP is a 0-127 value for the Patch Change message in MIDI
If the DLSSynth is returning instrument ID's that are outside of this
range - please let us know as that would be incorrect.
If you want to iterate through the Standard sounds of the GM bank, then
you can set this id to loop from 0 < 128 (GM is always MSB and LSB == 0)
Bill
On Monday, June 2, 2003, at 12:37 PM, Christopher Corbell wrote:
On Monday, June 2, 2003, at 12:21 PM, Daniel Jalkut wrote:
Does anybody have any suggestions as to why an Apple DLS synth hooked
up to the default audio output would work GREAT with "Piano1", "Piano
1d", "Piano 2", and "Piano 3", but remain silent at Honkytonk and
everything (I've tried) beyond? I am only passing instrument IDs that
I received from AudioUnitGetProperty on legal indices for the device.
I've traced it down to my call to MusicDeviceStartNote. Here, if I am
trying to play Honkytonk, the instrument ID is 0x8003 03, and no
sound is
produced. If I change JUST the instrument ID to 0x80002 (Piano 3),
then the note is played as expected.
[....]
Thanks for any help!
Daniel
This is probably an invalid ID issue. If you post a little code it
may be easier
to determine. I do not see high-byte values for non-GS ID's in my code
-
Honky Tonk is just 0x3.
GS instruments like Piano 1d have ID's with high bytes set, but they
look like
0x19999
0x100004
0x100005
(etc.).
Perhaps this is a simple signed/unsigned issue?
- Christopher
==============================
iPiano
Music software for Mac OS X
http://www.machotshot.com/iPiano
==============================
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.