• 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: Sequencing the setting of AUPresets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sequencing the setting of AUPresets


  • Subject: Re: Sequencing the setting of AUPresets
  • From: Chris Reed <email@hidden>
  • Date: Fri, 18 Jul 2003 13:59:15 -0500

On Friday, Jul 18, 2003, at 01:33 US/Central, Bill Stewart wrote:

With all of the discussion recently about presets and defining synths with presets rather than intsruments, etc, I've realised that we have no "event" type for the Music Sequence to schedule a preset...

So I've added one for Panther.

This allows you to add an AUPreset (CFDictionary) as an event at a particular time (beat) in a sequence track... Playing the sequence back will then set the AudioUnits's ClassInfo property with the supplied preset.

There are a couple of gothcha's with this.
(1) Some AudioUnits will NOT handle this well. For instance, the DLSMusicDevice that we ship (which is not preset-based in its implementation) will load a new sound bank when a user preset is set. This causes the synth to go out to the disk and do a bunch of parsing of the sound bank file. As the MusicPlayer/MusicSequencer does its scheduling in the render thread of the graph its attached to, this will probably lead to an overload...

Why don't you make the actual setting of the preset dictionary take place in a callback fired off of the main run loop? Obviously the synchronisation gets more complicated, but it would work around this potential problem for all synths.

-chris
_______________________________________________
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: Sequencing the setting of AUPresets
      • From: Urs Heckmann <email@hidden>
References: 
 >Sequencing the setting of AUPresets (From: Bill Stewart <email@hidden>)

  • Prev by Date: Re: Hardware control surfaces (was Re: Private Parameters)
  • Next by Date: Re: use of Groups...
  • Previous by thread: Re: Restarting MIDI
  • Next by thread: Re: Sequencing the setting of AUPresets
  • Index(es):
    • Date
    • Thread