Re: Parameters with step increase/decrease
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