• 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: Questions about multiple DLS synth instantiations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about multiple DLS synth instantiations


  • Subject: Re: Questions about multiple DLS synth instantiations
  • From: Christopher Corbell <email@hidden>
  • Date: Thu, 4 Dec 2003 19:22:44 -0800

On Dec 4, 2003, at 6:59 PM, Michael Norris wrote:

Hi there

I'm trying to work through a couple of problems with an AUGraph that contains two separate separate instantiations of the DLS Synthesizer in it.

The AUGraph schematic is:

DLS_Synth1 DLS_Synth2
| |
| |
| |
\ /
-----------------
MIXER
-----------------
|
|
|
-----------
OUTPUT
-----------


PROBLEM 1: When I send program changes to the second AUNode (using MusicDeviceMIDIEvent), it doesn't affect the sound output (it remains the default piano sound, PC #0). When I remove the code that creates the second node and set it equal to the first, the program changes work correctly.

PROBLEM 2: The reason I want two nodes is because I need to use a SoundFont on my hard-drive on one AUNode and Apple's built-in DLS Sounds on the other (for their drumkit sounds). I ought to be able to create a MusicSequence with two tracks, one track going to the SoundFont node, the other going to the DLS node. Unfortunately it seems that loading in a SoundFont on one node also effects the other. Any thoughts on how to avoid this, or do you think it's a programming error?

If anyone's been able to successfully construct an AUGraph with multiple, independent synths in it, I'd appreciate a look at some code snippets, particularly if you've been able to load SoundFonts onto different synth instantiations.
[....]

Tracks in iPiano are implemented this way, with separate
synth units for each track feeding into a stereo mixer.
SoundFonts work OK.

I think you may be seeing an initialization sequence problem?
You call AUGraphInitialize after setting the sound-bank to your
SoundFont, but I believe this will re-init the AudioUnit components?
Try moving the call to set the instruments last, after the graph
is constructed and running.

hth,
Christopher

=============================
Cider Factory Software, Inc.
http://www.cidersoftware.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: Questions about multiple DLS synth instantiations
      • From: William Stewart <email@hidden>
References: 
 >Questions about multiple DLS synth instantiations (From: Michael Norris <email@hidden>)

  • Prev by Date: Addendum
  • Next by Date: Re: Questions about multiple DLS synth instantiations
  • Previous by thread: Questions about multiple DLS synth instantiations
  • Next by thread: Re: Questions about multiple DLS synth instantiations
  • Index(es):
    • Date
    • Thread