• 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
AUIntrumentBase and CPU load
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AUIntrumentBase and CPU load


  • Subject: AUIntrumentBase and CPU load
  • From: Rémi Thébault <email@hidden>
  • Date: Sun, 17 Feb 2008 18:38:08 +0100

Hello

I haven't a big experience in Instrument programming and didn't find anything related to this on the web so may be this question will sound foolish to some of you.

I've made a small organ whose design is based on the SinSynth template. My problem is that this design model implements a sound engine in each SynthNote instance and makes the CPU load increasing for each active note.
On my machine, the SinSynth uses almost nothing of the CPU and adds about 1% of CPU load for each note. This is not really a problem for such a simple instrument, but my one adds about 10% of CPU load on each note.
It is only the first draft, so I guess I could lower this with a more efficient DSP code, but this behaviour is obviously not the one I want.
I'd like to have one sound engine in the instrument instance that each SynthNote would use. (for example the NI B4 use about 12% CPU load weither a note is played or not)


So what I'd like to know is if my design is just bad and I have to find another way to use the AUInstrumentBase class or if it would be simpler to overload directly MusicDeviceBase (I guess it is what is done for most of the biggest commercial instruments) for the behaviour I want.

Thank you
Rémi _______________________________________________
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


  • Prev by Date: yet 2 other AudioUnitGetProperty questions...
  • Next by Date: Re: rookie cocoa AU question
  • Previous by thread: Re: eliminating deprecated functions
  • Next by thread: DreamCheeky USB Piano Keyboard
  • Index(es):
    • Date
    • Thread