• 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: Steps to loading a SoundFont?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Steps to loading a SoundFont?


  • Subject: Re: Steps to loading a SoundFont?
  • From: Jeremy Sagan <email@hidden>
  • Date: Fri, 11 Jul 2008 17:59:11 -0400

I don't think you necessarily need to send bank and patch if you want the default piano, or on channel 10 drums, sound. You will need to send MIDI note on messages however.

On Jul 11, 2008, at 5:47 PM, William Stewart wrote:

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



Jeremy Sagan Sagan Technology www.sagantech.biz



_______________________________________________
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


  • Follow-Ups:
    • Re: Steps to loading a SoundFont?
      • From: Jeremy Sagan <email@hidden>
References: 
 >Re: Steps to loading a SoundFont? (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Steps to loading a SoundFont?
  • Next by Date: Re: Steps to loading a SoundFont?
  • Previous by thread: Re: Steps to loading a SoundFont?
  • Next by thread: Re: Steps to loading a SoundFont?
  • Index(es):
    • Date
    • Thread