Confusion with ease package accuracy
Hello. I'm afraid I'm missing something really obvious but I'm having trouble with the ease package.
I'm trying to ease the result of a line ramp (preferably using an in_out function) but [ease] is not reaching the ramp's destination value. it either goes over or under depending on the different functions.
My desired output range is quite large, 0 - 16384, because I'm dealing with OSC values from another application with that range. Is the large value range part of the problem? Or am I missing something fundamental about how [ease] works?
Thank you!
10000 / 16384 is still on part of the sine curve. Just use the same range for both line and ease (16384).
Hi, also having a problem with this. Chris, your solution works. But if you are generating a ramp with a changing destination there are problems where the range gets cut off.
Your patcher's use of input_range , out_range and paks confuses me a bit. How about a different approach? Drive ease with a line 0...1 and use the resulting output as an interpolation index between the current_value and the target_value. Keep the current value in a PV object. Less confusing, I think. Example:
The problem of overshoot still remains with one or two ease functions (elastic, back, others?) but this seems pretty close.
Looks good. Thanks!
Looking at your patcher again, it IS possible too to use output_range to remember the last value. It works as long as you don't interrupt the current ramp (causing discontinuity).
Example:
Awesome, thanks for following up. This one is much easier for me to follow.