• 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: Richard Dobson <email@hidden>
  • Date: Tue, 27 Nov 2007 15:23:18 +0000

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Parameters with step increase/decrease
      • From: Adam Stark <email@hidden>
References: 
 >Parameters with step increase/decrease (From: Adam Stark <email@hidden>)

  • Prev by Date: Re: User-land CoreAudio driver and Leopard
  • Next by Date: Re: Buffer Size in Audio Units
  • Previous by thread: Parameters with step increase/decrease
  • Next by thread: Re: Parameters with step increase/decrease
  • Index(es):
    • Date
    • Thread