Hello everyone,
in my custom skin, I have a button to turn the pfl on which also mutes the deck. When I click on it again to turn the pfl off, I would like to put back the deck level at the same one before the pfl was on. The button action I wrote is :
But when it is for example initially at 90%, it is put back at let's say 60%. If i double-click again, it is at 30%, and so on... So after some double-clicks, the volume is now at 0% when it was originally at 90%.
in my custom skin, I have a button to turn the pfl on which also mutes the deck. When I click on it again to turn the pfl off, I would like to put back the deck level at the same one before the pfl was on. The button action I wrote is :
<button action="pfl ? pfl off & get_var $deck1vol & param_cast float & level : pfl on & set $deck1vol `get_volume & param_cast float` & level 0%"/>When the deck volume is initially at 100%, I have no problem.
But when it is for example initially at 90%, it is put back at let's say 60%. If i double-click again, it is at 30%, and so on... So after some double-clicks, the volume is now at 0% when it was originally at 90%.
Posted Mon 31 Mar 25 @ 11:02 am
get_volume, gets the volume after the upslider and the crossfader you want to set your var to just level
<button action="pfl ? pfl off & get_var $deck1vol & param_cast float & level : pfl on & set $deck1vol `level` & level 0%"/>
Posted Mon 31 Mar 25 @ 11:07 am
That's it, thank you LOCODOG!
Posted Mon 31 Mar 25 @ 11:14 am