Re: Steps to loading a SoundFont?
Re: Steps to loading a SoundFont?
- Subject: Re: Steps to loading a SoundFont?
- From: William Stewart <email@hidden>
- Date: Fri, 11 Jul 2008 14:47:26 -0700
you probably need to send MIDI messages to the audio unit to set the
bank and patch numbers associated with the particular voices from the
sound bank that you want to hear.
On Jun 30, 2008, at 3:28 PM, ash oakenfold wrote:
Hi,
I can play/hear notes using the default music device. When I try to
load a custom SoundFont, I hear the same default piano.
// ... create graph ...
// ... get synth unit ....
FSRef fsRef;
FSPathMakeRef ((const UInt8*)"~/Library/Audio/Sounds/Banks/foo.sf2",
&fsRef, 0);
AudioUnitSetProperty (synthUnit,
kMusicDeviceProperty_SoundBankFSRef,
kAudioUnitScope_Global,
0,
&fsRef,
sizeof(fsRef));
// ... initialize graph ...
// ... start graph ...
What step(s) am I missing?
-Ash
_______________________________________________
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
_______________________________________________
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