Sign In:     


Forum: VirtualDJ Technical Support

Topic: PadFX and Effect Reset (Kind of a Script Question)
So I have scripts set on the bottom row of the Stems & FX pad page that perform various effects on the stems. The problem I am running into is that the effect does not return to its original setting after performing the effect.

Example: I have a low cut echo on one of the pads to effect what basically amounts to the MeloRhythm (Instru+Bass+HiHat+Kick)...(I now know that the same can be accomplished with a bit simpler code, but since I'm figuring this out and learning on my own as I go, I didn't wanna fiddle with it):
var 'stemsnfx4' 1 ? on & set 'stemsnfx4' 0 & mute_stem 'instru' off & mute_stem 'bass' off & mute_stem 'rhythm' off : off & set 'stemsnfx4' 1 & slip_mode off ? slip_mode & effect_stems 'instru' on & effect_stems 'bass' on & effect_stems 'rhythm' on & padfx 'low cut echo' 0.35 0.65 0.40 0.60  & wait 1bt & slip_mode off & mute_stem 'instru' on & mute_stem 'bass' on & mute_stem 'rhythm' on & padfx 'low cut echo' & effect_stems 'instru' off & effect_stems 'bass' off & effect_stems 'rhythm' off


The problem I have is that I also use the Low Cut Filter in general, but with different parameters, while mixing without using the StemFX. In the manual, I read the following:

"When the effect is stopped, the parameters return to their original values."

However, this doesn't happen. When the effect ends, the parameters from the PadFX remains, and I have to manually change them to use the effect normally again. I end up having to do this every time I use the PadFX.

Is there something I missed in the script?
 

Posted Mon 02 Jun 25 @ 8:52 pm
Anybody?
 

For your padfx off condition call the exact same list of params as you did for on.

I'm not saying that's how it should work, but that's how it does work.
I've spotted a sticking point with current and made a suggestion to the devs.
 

locoDog wrote :
For your padfx off condition call the exact same list of params as you did for on.


I follow the theory of what you are saying...but maybe my brain is fried, cuz I can't figure out how to put it to work...lol....(It took me almost 3 hours of tinkering last night into this morning to get the above to work....lmao)

But wouldn't I be calling a different set of parameters (the normal effect settings) vs the parameters used in the PadFx?


 

like this

var 'stemsnfx4' 1 ? on & set 'stemsnfx4' 0 & mute_stem 'instru' off & mute_stem 'bass' off & mute_stem 'rhythm' off : off & set 'stemsnfx4' 1 & slip_mode off ? slip_mode & effect_stems 'instru' on & effect_stems 'bass' on & effect_stems 'rhythm' on & padfx 'low cut echo' 0.35 0.65 0.40 0.60 & wait 1bt & slip_mode off & mute_stem 'instru' on & mute_stem 'bass' on & mute_stem 'rhythm' on & padfx 'low cut echo' 0.35 0.65 0.40 0.60 & effect_stems 'instru' off & effect_stems 'bass' off & effect_stems 'rhythm' off


Also, I'm all up for do it yourself, I've had super difficult script rolling round my head for years as I dip in and out of a project, but go max 1/2 an hour before asking for help.
I have people who are wayyyyy better programmers than me that ask for explainers.

I only got good by asking lots of questions, and sometimes those questions pointed the devs at things that needed fixing, like you've done here.
 

locoDog wrote :
like this

var 'stemsnfx4' 1 ? on & set 'stemsnfx4' 0 & mute_stem 'instru' off & mute_stem 'bass' off & mute_stem 'rhythm' off : off & set 'stemsnfx4' 1 & slip_mode off ? slip_mode & effect_stems 'instru' on & effect_stems 'bass' on & effect_stems 'rhythm' on & padfx 'low cut echo' 0.35 0.65 0.40 0.60 & wait 1bt & slip_mode off & mute_stem 'instru' on & mute_stem 'bass' on & mute_stem 'rhythm' on & padfx 'low cut echo' 0.35 0.65 0.40 0.60 & effect_stems 'instru' off & effect_stems 'bass' off & effect_stems 'rhythm' off


Didn't give me what I was looking for.

Example: When I use the Low Cut Effect on a full track the first parameter (strength) might be set to 0.60, but when I use it in the PadFx script, I only have strength set to 0.35. What I'm trying to do is when I disable the PadFx, have the strength parameter return to its original value of 0.60, rather than remaining on 0.35.
 

let's strip it down, tell me what happens with this, I just used echo for this.

effect_show_gui echo on & effect_active echo off & effect_slider echo 1 0.0 & effect_slider echo 2 0.0 & effect_slider echo 3 0.0 & effect_slider echo 4 0.0 & wait 2000ms & padfx 'echo' 0.35 0.65 0.40 0.60 & wait 2000ms & padfx 'echo' 0.35 0.65 0.40 0.60
 

Ok...That kind of works like I was envisioning. Let me see if I can take this and translate it to the Low Cut Echo and the appropriate stems (might be a good time to use some of the simpler code I read about lat night)...lol
 

Why are you changing stem effects outside of the padfx script instead of as a parameter of padfx?
 

Adion wrote :
Why are you changing stem effects outside of the padfx script instead of as a parameter of padfx?


Heck, I dunno...I told you I am teaching myself this stuff...lol...Just did the best I could with what I could make out from the documentation...These are my growing pains. Some of the documentation is a little jumbled to read...But I think I finally figured out what I was looking for, and part of it came from not truly understanding how the whole thing was intended to work. I went from the above script to this one:

var "StemsnFX4" ? on & set 'StemsnFX4' 0 & padfx 'low cut echo' 'stemfx:MeloRhythm' & mute_stem 'MeloRhythm' : off & set 'StemsnFX4' 1 & padfx "low cut echo" 0.6 0.65 0.30 0.25 "stemfx:MeloRhythm" & wait 0.9bt & mute_stem 'MeloRhythm'


This behaves exactly as I was envisioning in my head. It took another couple of hours of trial and error (sorry Loco....lol) but I finally figured it out, and got what I was hearing in my head
 

Thanks for the push guys...I also realized that I could rename the pad page then redownload the original to compare the default scripts (since I changed the scripts years ago and had no clue what was originally there). I reworked all my scripts and am now very happy with the outcome. Thanks Loco and Adion!!!