Fader snap mode

Discuss Lemur and share techniques.
Post Reply
drain
Newbie
Posts: 24
Joined: 19 Jan 2014 17:12

Fader snap mode

Post by drain »

Hello,

i want to be able to push a button to "snap lock" faders to their current value.

so they snap back to it after i release the fader.

This is such an amazing feature i experienced in Touchable:


https://youtu.be/ynFoGxKWV38?t=171
drain
Newbie
Posts: 24
Joined: 19 Jan 2014 17:12

Re: Fader snap mode

Post by drain »

i managed to get it working 8-)

now i just need a way the Fader moves smoothly to the value instead of jumping, any ideas ?
Attachments
snapfader.jzml
(6.89 KiB) Downloaded 91 times
drain
Newbie
Posts: 24
Joined: 19 Jan 2014 17:12

Re: Fader snap mode

Post by drain »

now i found another Problem :(

the Fader is not jumping back to the same value each time, its not precise.

looks like the touch variable on z is not accurate, or is there a better way ?
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Fader snap mode

Post by MrCorba »

At the moment I can't think of a nice way to let the fader "slide" to it's last position, but your value problem is luckily much easier:D

The z way you're currently using isn't reliable because there is a bit of a delay and this causes the x to change even the slightiest.

Just change the setLast script to execute on lockbutton.x rises. This way, the moment you press the lock button, the x value is stored in last. And is never changed again until you depress it and press it again.
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: Fader snap mode

Post by oldgearguy »

Here's something that does what you want (I think).

Play around with the BPM and the delta values to get the speed and smoothness you want.
Attachments
snapSmooth.jzml
(8.34 KiB) Downloaded 113 times
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: Fader snap mode

Post by oldgearguy »

OP - did you ever download and try this? Just curious if it was what you were looking for.

It's also a generally useful way to do slow modulations/movement (like LFOs, etc). Faster/smoother animations would likely require an 'on frame' script, which is overkill for this and a number of on frames could impact overall responsiveness, so I try to avoid them when possible.
crystaldrone
Newbie
Posts: 20
Joined: 05 Oct 2017 00:35

Re: Fader snap mode

Post by crystaldrone »

oldgearguy wrote:OP - did you ever download and try this? Just curious if it was what you were looking for.

It's also a generally useful way to do slow modulations/movement (like LFOs, etc). Faster/smoother animations would likely require an 'on frame' script, which is overkill for this and a number of on frames could impact overall responsiveness, so I try to avoid them when possible.
Works great. Thanks!

Is it at all possible for you to tell me how to reset the faders to send value 100?
Post Reply