Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: FX Toggle with pads and automate slider path?
Coming from rekordbox with the DDJ-RR I love the pad fx. I like to replicate them and have already some basic fx assigned to the pads. One thing I'm unable to achieve for some reason. Found a thread that it may not be supported?

I want the pads to toggle the fx. I tried several combinations "effect 3 active toggle", "toggle effect 3" and many more but either it did not active the fx at all or was just on/off.

This is what I have which is now on / off with the pads:
effect_active 3 & 'effect_slider 3 1 90%' & 'effect_slider 3 2 60%' & 'effect_active 4' & 'effect_slider 4 1 65%'
How can I set it to a toggle function?

And another thing. This may not be able. I would like to toggle the effect noise and let its slider 1 run from 50% to 100% in 8 bars. Fadeout did not work or I misinterpret it. Anyone can point me to the right direction?
 

Posted Wed 28 Dec 22 @ 12:17 am
locoDogPRO InfinityModeratorMember since 2013
effect_active 3 toggle

will change state of the effect each press, maybe you want

effect_active 3 while_pressed


other thing: fadeout is a skin script not an audio script, there's 2 ways you could do it, position based interpolated [covered in one of the script schools, quite complicated] the other is, beattime base

this should me enough to get you started
effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125
 

Posted Wed 28 Dec 22 @ 12:45 am
Amazing. Thanks a lot!! "while_pressed" was it. I tried toggle like that one you posted but it just was an on / off state same behaviour like not adding toggle at all. Thinking about now it makes sense.

The noise sweep automation works. After testing it I thought it would be great if the knob 1 shots back within the time range of 1/8 or 1/2 to the origin (50%) to finalize the sweep and not run a constant noise endless. Also there is some weird behaviour. After deactivating the noise Fx, the slider 1 goes on with the automation. I guess I need to figure out where you got that values from "0.125bt 256" "+0.001953125". Did you divide the movement for the 50% path way with the time span of 8 bar or what is +0.001953125 exactly?
Thanks again!
 

Posted Wed 28 Dec 22 @ 3:20 am
locoDogPRO InfinityModeratorMember since 2013
0.125bt; 1/8th of a beats worth of time per repeat
rsi scripts have a speed limit, somewhere around 30ms, 1/8th beat keeps it above 30ms for bpms upto 225ish

256; 256 * 1/8th is 8 bar

+0.001953125; we have 0.5 to cover over 256 steps, just division

effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125 & effect_slider noise 1 1.0 ? effect_active noise off & effect_slider noise 1 0.5


lots of ways you can do this type of thing
 

Posted Wed 28 Dec 22 @ 3:40 am
Wow amazing. Thanks a lot for the explanation! I went through the VDJPedia VDJscript description but still missing something. The script is nearly done but not working correctly on the sweep down/back to origin movement. With that script the noise FX slot gets deactivated before the sweep down automation happens.

I tried the ? and repeat_start to delay the "noise off" action once the sweep is done, but no success. Either the sweep down doesn't happen or with "&" the FX slot stay active.

This is what I got. I surely missing something
effect_slider noise 1 0.5 & effect_slider 1 2 28% & effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125 & effect_slider noise 1 1.0 ? repeat_start_instant 'rsiSliderMove' 0.125bt 12 & effect_slider noise 1 -0,0416666666666667 & repeat_start 'effect_active noise off' 0.125bt 12
 

Posted Thu 29 Dec 22 @ 1:21 am
locoDogPRO InfinityModeratorMember since 2013
effect_slider noise 1 0.5 & effect_slider 1 2 28% & effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125 & effect_slider noise 1 1.0 ? repeat_start_instant 'rsiSliderMove' 0.125bt 12 & effect_slider noise 1 -0.0416666666666667


to code format on site use [ code ] [/ code] tags
you had it right just you used a , instead of a . as the decimal point
 

Posted Thu 29 Dec 22 @ 1:34 am
I swear I did try [ code ] and also ` but that didn't work for some reason. That , comes from the calculator I'm using. Missed that. But still the issue persist. The last part "noise off" does not trigger. The FX stays active.

& repeat_start 'effect_active noise off' 0.125bt 12
I tried it with a ? too. To my understanding it is a "wait till prior action is done" function.

effect_slider noise 1 0.5 & effect_slider 1 2 28% & effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125 & effect_slider noise 1 1.0 ? repeat_start_instant 'rsiSliderMove' 0.125bt 12 & effect_slider noise 1 -0.0416666666666667 & repeat_start 'effect_active noise off' 0.125bt 12

//edit: [code] does not work for me. The editor deletes the it even if I write it. That bare minimum forum editor is not even showing one option to choose from for me.
 

Posted Thu 29 Dec 22 @ 2:35 am
locoDogPRO InfinityModeratorMember since 2013
edit ah yeah no bbcode for home users

& repeat_start 'effect_active noise off' 0.125bt 12

that's a rs script with no action to repeat, you're calling a rs script called 'effect_active noise off' but it does nothing, you just gave it a name, look up the in app script description for repeat_start type scripts

going further back, you have a rsi every 1/8th beat calling this rs script that does nothing.

...effect_slider noise 1 1.0 ? repeat_start_instant 'rsiSliderMove' 0.125bt 12 & effect_slider noise 1 -0.0416666666666667 & repeat_start 'effect_active noise off' 0.125bt 12



we've already have the solution framework earlier in the script,
we're moving a thing in steps, when thing meets a condition do another thing.
[I assume the dial is going to 0.5]
you could have counters, you could monitor the thing you're moving, or you could use brackets

brackets

effect_slider noise 1 0.5 & effect_slider 1 2 28% & effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125 & effect_slider noise 1 1.0 ? ( wait 1.5bt & effect_active noise off ) & repeat_start_instant 'rsiSliderMove' 0.125bt 12 & effect_slider noise 1 -0.0416666666666667


counter

set myRSIcounter 0 & effect_slider noise 1 0.5 & effect_slider 1 2 28% & effect_active noise & repeat_start_instant 'rsiSliderMove' 0.125bt 256 & effect_slider noise 1 +0.001953125 & effect_slider noise 1 1.0 ? repeat_start_instant 'rsiSliderMove' 0.125bt 12 & effect_slider noise 1 -0.0416666666666667 & set myRSIcounter +1 & var myRSIcounter 12 ? effect_active noise off
 

Posted Thu 29 Dec 22 @ 3:47 am
Thanks a lot. Works like a charm. I thought it could be just that easy to use repeat_start followed by the action and time parameter. Looking at your script it is not and I would have not come to that outcome for sure. Even though I do html/css and to some extent php coding, I find the script language too advanced for a general butter & bread customer which I can see is hooping to the forum to look for help like me. But sure a good offering.
 

Posted Thu 29 Dec 22 @ 9:32 pm