Quick Sign In:  

Forum: General Discussion

Topic: Slow down Gain while pressed
I have found a script for reducing the volume
mic_talkover 10% 250ms while_pressed

Is there a way to realize the same effect for the gain per script?
Also when i pressed the buttom the gain slices soft down and when i release the button the gain goes soft back to last position?
 

geposted Thu 16 Mar 23 @ 9:14 am


 

geposted Thu 16 Mar 23 @ 9:51 am
check this :)

for faster or slower slide, change the gain +3% / -3% value
for the down position change this 12% gain ? gain 10%


down ? ( repeat_stop gainup & param_equal `get_var loadedtemp` `get_loaded_song title` ? nothing :
set loadedtemp `get_loaded_song title` & set gaintemp `gain` & set gaintemp2 `param_add "get_text '-2' & param_cast percentage" "get_var gaintemp & param_cast percantage"` ) &
( repeat_start_instant gaindown 30ms & param_smaller 12% gain ? gain 10% : gain -3% ) :
( repeat_stop gaindown ) &
( repeat_start_instant gainup 30ms & param_bigger 'get_var gaintemp2' gain ? repeat_stop gainup & get_var gaintemp & param_cast 'percentage' & gain : gain +3% )


EDIT THE CODE
 

geposted Thu 16 Mar 23 @ 9:58 am
DennYo Beats wrote :
check this :)

for faster or slower slide, change the gain +3% / -3% value
for the down position change this 12% gain ? gain 10%


down ? ( repeat_stop gainup & param_equal `get_var loadedtemp` `get_loaded_song title` ? nothing :
set loadedtemp `get_loaded_song title` & set gaintemp `gain` & set gaintemp2 `param_add "get_text '-2' & param_cast percentage" "get_var gaintemp & param_cast percantage"` ) &
( repeat_start_instant gaindown 30ms & param_smaller 12% gain ? gain 10% : gain -3% ) :
( repeat_stop gaindown ) &
( repeat_start_instant gainup 30ms & param_bigger 'get_var gaintemp2' gain ? repeat_stop gainup & get_var gaintemp & param_cast 'percentage' & gain : gain +3% )


EDIT THE CODE


Nice, but if the Level of the Gain is +3db with this script it goes back to 0db instead to +3db. Is there a way to go back to the latest position?

 

geposted Thu 16 Mar 23 @ 10:35 am
Test with the folow option:

 

geposted Thu 16 Mar 23 @ 10:39 am
i don't know what you mean... Nice, but if the Level of the Gain is +3db with this script it goes back to 0db instead to +3db. Is there a way to go back to the latest position?

The script save the start value of the GAIN knob and set after fading the GAIN knob to the the start position.

When the Gain knob is 48% the script ends with 48%
When the Gain knob is 55% the script ends with 55%

 

geposted Thu 16 Mar 23 @ 10:45 am
DennYo Beats wrote :
Test with the folow option:



That's it! Thank you... but one last Question.
Is there a way to use this script for both decks at the same time, so that i don't need one button for deck 1 and one for deck 2?

 

geposted Thu 16 Mar 23 @ 10:51 am

( down ? (deck 1 repeat_stop gainup & deck 1 param_equal `get_var loadedtemp` `get_loaded_song title` ? nothing :
deck 1 set loadedtemp `get_loaded_song title` & deck 1 set gaintemp `gain` & deck 1 set gaintemp2 `param_add "get_text '-2' & param_cast percentage" "get_var gaintemp & param_cast percantage"` ) &
( deck 1 repeat_start_instant gaindown 30ms & deck 1 param_smaller 12% gain ? deck 1 gain 10% : deck 1 gain -3% ) :
( deck 1 repeat_stop gaindown ) &
( deck 1 repeat_start_instant gainup 30ms & deck 1 param_bigger 'get_var gaintemp2' gain ? deck 1 repeat_stop gainup & deck 1 get_var gaintemp & param_cast 'percentage' & deck 1 gain : deck 1 gain +3% ) ) &
( down ? (deck 2 repeat_stop gainup & deck 2 param_equal `get_var loadedtemp` `get_loaded_song title` ? nothing :
deck 2 set loadedtemp `get_loaded_song title` & deck 2 set gaintemp `gain` & deck 2 set gaintemp2 `param_add "get_text '-2' & param_cast percentage" "get_var gaintemp & param_cast percantage"` ) &
( deck 2 repeat_start_instant gaindown 30ms & deck 2 param_smaller 12% gain ? deck 2 gain 10% : deck 2 gain -3% ) :
( deck 2 repeat_stop gaindown ) &
( deck 2 repeat_start_instant gainup 30ms & deck 2 param_bigger 'get_var gaintemp2' gain ? deck 2 repeat_stop gainup & deck 2 get_var gaintemp & param_cast 'percentage' & deck 2 gain : deck 2 gain +3% ) )
 

geposted Thu 16 Mar 23 @ 11:10 am
Yes that's it! :-) Thanks :-)
 

geposted Thu 16 Mar 23 @ 11:23 am