OZONE Asylum
Forums
OZONE
Need Help With a Logarithmic Function
This page's ID:
31285
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
OK, I've been working on this for the past hour and I'm still clueless and frustrated, probably because I'm not exactly sure what [b]max[/b] is supposed to be. I'm sure this is all due to something I'm misunderstanding on my end, but please allow me to review my goal to make sure both that I'm being clear and that I understand what I want, myself. [b]potReading[/b] is the reading from my potentiometer, which is from 0 to 1023, depending on where the dial is set. [b]delayMax[/b] is the maximum delay between changes in pattern, which we'll set at 1000 milliseconds (1 second). I want to take [b]potReading[/b] and calculate that to equal between 0.0 and 1.0, but in a nonlinear way (as indicated by the red line on the graph above). I will then multiply that value by [b]delayMax[/b] to get the number of milliseconds of delay between steps. I know I'm asking for what amounts to a complete solution here, but I swear I've worked on this independently for as far as my synapses will take me. [url=http://www.roadsideresort.com/][img]http://www.wesleytreat.com/events/asylum/sig_wtlogo_events_01.gif[/img][img]http://www.wesleytreat.com/events/asylum/sig_events_01.php[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »