• 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: Parameters with step increase/decrease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameters with step increase/decrease


  • Subject: Re: Parameters with step increase/decrease
  • From: Adam Stark <email@hidden>
  • Date: Tue, 27 Nov 2007 15:30:32 +0000

Hi Richard,

Thanks for your reply. This was my approach when using VST plug-ins but with an AU I cannot see where to put this code. I guess a better way to phrase my question would be where can I adapt the setting of a parameter value so that I can make these changes to it. In the VST SDK I just put the code in the setParameter method for the relevant parameter. Where would I do it in an audio unit?

Thanks,

Adam

On 27 Nov 2007, at 15:23, Richard Dobson wrote:

Adam Stark wrote:
Hi,
I was wondering if anyone knew how to make a parameter take values between 0 and N with a step size. For example, values between 0 and 2 with a step size of 0.25 so it would only take the values:
0
...

??!!

y = s * (int)(x/s)


(is just one of the many ways to do it)

I leave the question of rounding to nearest as an exercise (is the range 0 to 2 inclusive?, etc).



Richard Dobson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40elec.qmul.ac.uk


This email sent to email@hidden

_______________________________________________ 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: Parameters with step increase/decrease
      • From: "Kevin Dixon" <email@hidden>
References: 
 >Parameters with step increase/decrease (From: Adam Stark <email@hidden>)
 >Re: Parameters with step increase/decrease (From: Richard Dobson <email@hidden>)

  • Prev by Date: Re: Buffer Size in Audio Units
  • Next by Date: Re: Parameters with step increase/decrease
  • Previous by thread: Re: Parameters with step increase/decrease
  • Next by thread: Re: Parameters with step increase/decrease
  • Index(es):
    • Date
    • Thread