Re: MusicDevice and SoundFonts
Re: MusicDevice and SoundFonts
- Subject: Re: MusicDevice and SoundFonts
- From: William Stewart <email@hidden>
- Date: Mon, 6 Feb 2006 11:21:27 -0800
On 04/02/2006, at 3:58 PM, Edwin Vane wrote:
Hi,
I want to use soundfonts since I can no longer stand the default
soundbank... Sorry:) I see there are lots of soundfonts out there but
many of them are for single instruments. I know the MusicDevice can be
given FSSpecs of banks but can it load more than one of them?
no, just one at a time.
I've seen
basically no info in the docs about what to do after you've loaded the
soundfont.
Sound Fonts do have some tweaky things in them, including definitions
for patch numbers associated with different voices in the AU.
You can use the Instrument properties (kMusicDeviceProperty_...) to
find out how many separate sounds are defined in a loaded bank, what
their names are, their locations, etc...
The MusicSequence example allows a sound bank to be specified
but doesn't do anything else other than load it.
right
Typically, sound fonts of limited contents have associated MIDI files
with them (for instance, you can get a sound font with gamelan
sounds, and a midi file that references that) - those pairings of
MIDI files and sound fonts will do things like know which patch and
bank changes to set on each midi channel for the right instrument,
etc...
Often, if you use these specialised sound fonts with a general midi
file, you don't hear any sound (or some very strange/sparse sounds),
because the patch/bank changes don't match.
The DLSMusicDevice doesn't do any midi bank/patch (or instrument
number) remapping - if we did, then you couldn't use these
specialised midi file<->sound bank pairings.
Bill
Are instrument id's
dependent on the bank you load (ie, when I issue an instrument change
event for instrument 1, does the sound bank map these values to
data to
be used or do I need to do that mapping). Can somebody fill me in
on the
basic details here?
--
Edwin Vane
MMath Candidate
Computer Graphics Lab
School of Computer Science
University of Waterloo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
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
________________________________________________________________________
__
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden