Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 47
Dear colleagues,
I ask for your help in writing a script to control the flashing of the button. I have studied the Freestyler program and am now assigning controls to buttons in Launchpad. I ran into a problem: I can't make the button blink dimly when the function is not active, and brightly when the function is on. I would appreciate any help or advice on this issue.

the function on the button is written as follows:
var_equal '$FS_RCV_$FS_SND_OVER_01' 0 ? off & set '$FS_SND_OVER_01' 1 while_pressed : on & set '$FS_SND_OVER_01' 1 while_pressed

I wrote it like this: var_equal '$FS_RCV_$FS_SND_OVER_01' 0 ? blink 500ms ? color 'white' : off : color 'dark white

In this case, the button always blinks dimly, when I press and release the button, the function turns on, the button blinks dimly, I press it again - the function turns off, the button blinks dimly, but if you press and hold the button, it blinks brightly.

 

Posted Mon 16 Sep 24 @ 5:34 pm
ZiglarPRO InfinityMember since 2011
What is wrong with this Script? It does what i want it to do, i.e toggle the loopchop effect on and off and give me LED Feedback but the only problem is that the LED is on by default and the effect is activated when the LED is off and the opposite when its on. Almost like i have to push the button to arm it before pressing again to get the desired feature. Any Help will be much appreciated,Thanks

var 'voiceThing' 0 ?
on & toggle 'voiceThing' & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : off & toggle 'voiceThing' & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`
var 'effectActive' 0 ?
on & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : off & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`
 

Posted Wed 18 Sep 24 @ 4:09 pm
locoDogPRO InfinityModeratorMember since 2013
invert where you call led on/off
 

Posted Wed 18 Sep 24 @ 4:27 pm
ZiglarPRO InfinityMember since 2011
sorry but I am very green with VDJ scripts. I can’t find the “led toggles” in the script I uploaded . Thanks for your help as always 🙏🏾

 

Posted Thu 19 Sep 24 @ 2:44 am
locoDogPRO InfinityModeratorMember since 2013
var 'voiceThing' 0 ?
off & toggle 'voiceThing' & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : on & toggle 'voiceThing' & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`
var 'effectActive' 0 ?
off & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : on & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`


I'm not going to bother trying to figure out what it is supposed to be doing,
If you see "on" or "off" on their own in a script then that's for LED logic
 

Posted Thu 19 Sep 24 @ 3:24 am
ZiglarPRO InfinityMember since 2011
Thanks Locodog... Much Appreciated

 

Posted 7 days ago @ 1:36 pm
locoDogPRO InfinityModeratorMember since 2013
@djkrysr new in EA build 8322

get_sample_info X type

X being sample slot number
 

Posted 2 days ago @ 1:10 am
djkrysrPRO InfinityMember since 2010
Great, thanks for letting me know this addition to the script, I will get straight on it.

 

Posted 2 days ago @ 10:18 am