Re: Parameter value convert
Re: Parameter value convert
- Subject: Re: Parameter value convert
- From: David Collins <email@hidden>
- Date: Wed, 11 Feb 2009 16:20:13 -0600
Assuming linearity, y=mx+b.
On Feb 11, 2009, at 4:13 PM, Mark's Studio wrote:
I know this might be a bit off topic.
i have a parameter that goes from -2400..0.. 2400
and i would like to convert it to 0.25..1..4
2400 = 4
1200 = 2
0 = 1
-1200 = 0.5
-2400 =0.25
Hopefully someone has a smart trick, i gone completely blank.
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078
Fax: +45 35366038
Mobile: +45 20416018
www.marks-studio.dk
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
_______________________________________________
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