Quick Sign In:  

Forum: General Discussion

Topic: Move a slider slowly to a desired value

This topic is old and might contain outdated or incorrect information.

Hello every one,

I can't find a solution in the forum even if I know this may be a very basic script :

I want to press a key on my keyboard to move the filter slider SLOWLY to 50%. I use
filter 50%

but it moves instantly.

Please help me! Many thanks
 

Posted Wed 05 Feb 20 @ 2:43 pm
locodogPRO InfinityModeratorMember since 2013
depend on what you actually want you might mean a few different things, but we'll start with this
repeat 30ms & deck 1 filter -1%
 

Posted Wed 05 Feb 20 @ 3:01 pm
Oh sorry it wasn't clear a all.

The filter button can be every where ( 0% ; 10% ; 42% ; 70% etc...) but when I press a button on my keyboard I want it get back to 50% slowly not instantly.

Thank you for your help.
 

Posted Wed 05 Feb 20 @ 3:08 pm
locodogPRO InfinityModeratorMember since 2013
repeat_start "rsFilterNeutral" 100ms -1 & param_bigger filter 49% ? filter +1% : param_smaller filter 51% ? filter -1% : repeat_stop 'rsFilterNeutral' & filter 50%
 

Posted Wed 05 Feb 20 @ 3:42 pm
Tanks to your other posts Iocodog I am trying something like that to stop the filter at 50% when it is below 50% but it doesn't stop at 50% :

repeat_start 'test1' 380ms 100 & filter +1% & filter 0.50 ? repeat_stop 'test1'

I can't understand why?

Basically what I need is like a Pitch Reset button for filter (or any slider).

Thank you
 

Posted Wed 05 Feb 20 @ 3:43 pm
Wooow it works! You're such a GENIUS locodog!!!

Thank you soooo much!

locodog is a GENIUS!!!
 

Posted Wed 05 Feb 20 @ 3:46 pm
locodogPRO InfinityModeratorMember since 2013
user21286011 wrote :
....but it doesn't stop at 50% :

repeat_start 'test1' 380ms 100 & filter +1% & filter 0.50 ? repeat_stop 'test1'

I can't understand why?


It's because you're querying too exact, what if the filter is 49.5%, it misses exact 0.5 and just keeps going.
See how my offer leaves a tiny margin of error. There are ways to ensure exactly 0.5 but I don't think it's needed in this case.

 

Posted Wed 05 Feb 20 @ 5:11 pm


(Old topics and forums are automatically closed)