• 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: Setparameter problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setparameter problem


  • Subject: Re: Setparameter problem
  • From: Cynthia Maxwell <email@hidden>
  • Date: Tue, 23 Sep 2008 15:35:50 -0700


On Sep 23, 2008, at 2:04 PM, Pjotr kiwapta wrote:


I am quit new to AudioUnit programming. So I have followed the AudioUnit programmer guide (TremoloUnit ). Now I wanted to create an audio instrument instead of an effect. So I created an instrument based on the AudioUnit instrument template. Where AUEffectBase has implemented a SetParameter function, the AUMonotimbralInstrumentBase hasn't.

AUEffectBase just made this shortcut method to parameters in the global scope. Normally, one would inherit the full SetParameter call from AUBase to set parameters in other scopes as well.

So I looked into the code of AUEffectBase. It appears that SetParameter calls Globals()->SetParameter. So I did the same in my audio instrument. But it doesn't work. (at least the view isn't updated).

The instrument template gives an example on how to call this in the constructor method.

Are your parameters in the global scope? 

Did you create the necessary elements as indicated in the constructor example?

I don't understand what I am doing wrong. I have defined the parameters. When I open the unit in AULab, the sliders for the parameters appear and work fine.

You mean in the generic view? Can you post your GetParameterInfo function?

But calling the factory presets doesn't work because Globals()->SetParameter doesn't seem to do anything.

Are you sure the parameterID's and values are correct?

Why does it work in the AUEffectBase and not in the AUMonotimbralInstrumentBase? Please help, because it is rather frustrating.

Thanks in advance.
 _______________________________________________
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: Setparameter problem
      • From: Pjotr kiwapta <email@hidden>
References: 
 >Setparameter problem (From: Pjotr kiwapta <email@hidden>)

  • Prev by Date: Setparameter problem
  • Next by Date: Re: Examples for AudioFileStream and AudioConverter?
  • Previous by thread: Setparameter problem
  • Next by thread: RE: Setparameter problem
  • Index(es):
    • Date
    • Thread