Hey guys, lookin for a little VDJ script help. I tweaked a few maps for the Studio 4a and Im pretty much settled on my latest one however i'm having a couple issues with mapping the leds correctly so I can get the proper feedback as to which functions I have activated and which ones I don't.
Thanks in advance for any assistance and here is my script that I would need the corresponding led script for.
<map value="LED_FX1" action="? effect "backspin" active : effect "dsp_Distorter" active" />
<map value="LED_FX2" action="? effect "brake" active : effect "flanger" active" />
<map value="LED_FX3" action="? effect "FlangedLoopOut" active : effect "dsp_Reverb" active" />
<map value="LED_FX4" action="effect active ? on : off" />
Now currently this suits me very well the only problem is that when I engage any one of the 4 FX it turns all 4 FX buttons blue where I would very much like it to only turn the effect's button i'm using to change color.
Also as a side project I'm trying to get the "keylock" button to blink to the music the same way the sync button does.
Thanks again!
Thanks in advance for any assistance and here is my script that I would need the corresponding led script for.
<map value="LED_FX1" action="? effect "backspin" active : effect "dsp_Distorter" active" />
<map value="LED_FX2" action="? effect "brake" active : effect "flanger" active" />
<map value="LED_FX3" action="? effect "FlangedLoopOut" active : effect "dsp_Reverb" active" />
<map value="LED_FX4" action="effect active ? on : off" />
Now currently this suits me very well the only problem is that when I engage any one of the 4 FX it turns all 4 FX buttons blue where I would very much like it to only turn the effect's button i'm using to change color.
Also as a side project I'm trying to get the "keylock" button to blink to the music the same way the sync button does.
Thanks again!
Posted Tue 03 Sep 13 @ 7:13 pm
One you conditional statements are incorrect.
Second, where did you get the original mappings from?
Second, where did you get the original mappings from?
Posted Tue 03 Sep 13 @ 7:39 pm
Thanks for the response. This part of the mapping was contributed by someone else, I didn't mind that it looked odd because it works but I guess that could be the problem. The mapping came from Nemonic.
Posted Tue 03 Sep 13 @ 8:25 pm
As I mentioned, the problem is in your mapping of the conditional statements.
You first have to identify the 'test' then the True / False response -- 'test' ? do if true : do if false
That is why LED_FX4 works when any effect is active.
So what are you trying to do with the other three FX LEDs?
For LED_FX1 -
If Backspin is active make the LED do ___________ .
If dsp_Distorter is active make the LED do __________ .
Give me the same info for the other LEDs, then we can work on the proper statements.
You first have to identify the 'test' then the True / False response -- 'test' ? do if true : do if false
That is why LED_FX4 works when any effect is active.
So what are you trying to do with the other three FX LEDs?
For LED_FX1 -
If Backspin is active make the LED do ___________ .
If dsp_Distorter is active make the LED do __________ .
Give me the same info for the other LEDs, then we can work on the proper statements.
Posted Wed 04 Sep 13 @ 6:10 am
Ok this is the latest everything except for one led is working perfectly. The 4th fx led still toggles on and off when any of the other effects are engaged.Thanks for the help, I still have a long way to go before i really understand the vdj language but I love all the options.
<map value="ONINIT" action="set "FXSel" 0" />
<map value="FX1" action="var 'FXSel' 1 ? effect 'backspin' active : effect 'dsp_distorter' active" />
<map value="FX2" action="var 'FXSel' 1 ? effect 'brake' active : effect 'flanger' active" />
<map value="FX3" action="var 'FXSel' 1 ? effect 'flangedLoopOut' active : effect 'dsp_reverb' active" />
<map value="FX4" action="effect active" />
<map value="LED_FX1" action="var 'FXSel' 1 ? effect 'backspin' active on ? on : off : effect 'dsp_distorter' active on ? on : off " />
<map value="LED_FX2" action="var 'FXSel' 1 ? effect 'brake' active on ? on : off : effect 'flanger' active on ? on : off" />
<map value="LED_FX3" action="var 'FXSel' 1 ? effect 'flangedLoopOut' active on ? on : off : effect 'dsp_reverb' active on ? on : off" />
<map value="LED_FX4" action="effect active ? on : off" />
<map value="LOAD_FX1" action="set 'FXSel' 0" />
<map value="LOAD_FX2" action="set 'FXSel' 1" />
<map value="LED_LOAD_FX2" action="var 'FXSel' 1 ? on : off" />
<map value="LED_LOAD_FX1" action="var 'FXSel' 0 ? on : off" />
<map value="ONINIT" action="set "FXSel" 0" />
<map value="FX1" action="var 'FXSel' 1 ? effect 'backspin' active : effect 'dsp_distorter' active" />
<map value="FX2" action="var 'FXSel' 1 ? effect 'brake' active : effect 'flanger' active" />
<map value="FX3" action="var 'FXSel' 1 ? effect 'flangedLoopOut' active : effect 'dsp_reverb' active" />
<map value="FX4" action="effect active" />
<map value="LED_FX1" action="var 'FXSel' 1 ? effect 'backspin' active on ? on : off : effect 'dsp_distorter' active on ? on : off " />
<map value="LED_FX2" action="var 'FXSel' 1 ? effect 'brake' active on ? on : off : effect 'flanger' active on ? on : off" />
<map value="LED_FX3" action="var 'FXSel' 1 ? effect 'flangedLoopOut' active on ? on : off : effect 'dsp_reverb' active on ? on : off" />
<map value="LED_FX4" action="effect active ? on : off" />
<map value="LOAD_FX1" action="set 'FXSel' 0" />
<map value="LOAD_FX2" action="set 'FXSel' 1" />
<map value="LED_LOAD_FX2" action="var 'FXSel' 1 ? on : off" />
<map value="LED_LOAD_FX1" action="var 'FXSel' 0 ? on : off" />
Posted Wed 04 Sep 13 @ 9:38 am
I modified your post to only show the relevant items.
But to your issue -
The reason FX4 still lights all the time is because it is set to be ON when an effect is active.
<map value="LED_FX4" action="effect active ? on : off" />
What are your expectations of what the LED for FX4 is suppose to do?
Btw, there are some things that you could do to clean-up the scripting for the items that you have fixed. But since they are working I would just leave them alone. Unless you want to know :)
But to your issue -
The reason FX4 still lights all the time is because it is set to be ON when an effect is active.
<map value="LED_FX4" action="effect active ? on : off" />
What are your expectations of what the LED for FX4 is suppose to do?
Btw, there are some things that you could do to clean-up the scripting for the items that you have fixed. But since they are working I would just leave them alone. Unless you want to know :)
Posted Thu 05 Sep 13 @ 7:33 am
Thanks for the help I really appreciate it, I'm always willing to learn if you wanna teach me how to clean it up but it's no biggie if you can't, like you said it works so it's not the end of the world. The 4th knob is an effect selector knob and the 4th fx button activates the selected effect so basically I would like that 4th fx led to only change color when the 4th fx button is activated. I know it's stupid but I like having everything working properly and if it's not possible then again it's not the end of the world. Either way thanks for helping me out!!!
Posted Thu 05 Sep 13 @ 9:05 am
Well your other three buttons are activating effects - they are to specific effects, but none the less they are effects - so button FX4 will always be ON when any of the others are ON. We could get funky, weird, and creative to make it only ON when it activates an effect that IS NOT one of your directly set effects - but that is only if you really want to go that far.
Clean up -- Since "effect 'fx_name' active" already returns True/False based on the state of the effect, then we can shorten your statements.
So instead of checking if the effect is ON then telling the LED to be ON or OFF ... we just use the effect's state to tell the LED what to do.
<map value="LED_FX1" action="var 'FXSel' 1 ? effect 'backspin' active : effect 'dsp_distorter' active " />
<map value="LED_FX2" action="var 'FXSel' 1 ? effect 'brake' active : effect 'flanger' active" />
<map value="LED_FX3" action="var 'FXSel' 1 ? effect 'flangedLoopOut' active : effect 'dsp_reverb' active" />
Clean up -- Since "effect 'fx_name' active" already returns True/False based on the state of the effect, then we can shorten your statements.
So instead of checking if the effect is ON then telling the LED to be ON or OFF ... we just use the effect's state to tell the LED what to do.
<map value="LED_FX1" action="var 'FXSel' 1 ? effect 'backspin' active : effect 'dsp_distorter' active " />
<map value="LED_FX2" action="var 'FXSel' 1 ? effect 'brake' active : effect 'flanger' active" />
<map value="LED_FX3" action="var 'FXSel' 1 ? effect 'flangedLoopOut' active : effect 'dsp_reverb' active" />
Posted Thu 05 Sep 13 @ 10:17 am
Wow that does look allot cleaner. I think I'm already pushing the bounds of your assistance so could you perhaps give me an example of how the excludatory, no idea how to spell that, effects script would look like
Posted Thu 05 Sep 13 @ 10:33 am
Here ya go ... put this in for the FX4 LED ...
var 'FXSel' 1 ? effect 'backspin' active ? off : effect 'brake' active ? off : effect 'flangedLoopOut' active ? off : effect active : effect 'dsp_distorter' active ? off : effect 'flanger' active ? off : effect 'dsp_reverb' active ? off : effect active
So when in your FXSel mode equals 1 - it will not be lit if backspin, brake, or flangedLoopOut are launched by their respective buttons or the FX4 button. And the same is true when FXSel mode equals 0 for those three effects (dsp_distorter,flanger,dsp_reverb).
Basically the only time the FX4 LED will light is if the effect is not one of the six (3 depending on the mode) dedicated to FX1,2,3 buttons.
var 'FXSel' 1 ? effect 'backspin' active ? off : effect 'brake' active ? off : effect 'flangedLoopOut' active ? off : effect active : effect 'dsp_distorter' active ? off : effect 'flanger' active ? off : effect 'dsp_reverb' active ? off : effect active
So when in your FXSel mode equals 1 - it will not be lit if backspin, brake, or flangedLoopOut are launched by their respective buttons or the FX4 button. And the same is true when FXSel mode equals 0 for those three effects (dsp_distorter,flanger,dsp_reverb).
Basically the only time the FX4 LED will light is if the effect is not one of the six (3 depending on the mode) dedicated to FX1,2,3 buttons.
Posted Thu 05 Sep 13 @ 1:49 pm
Just tried it out and COULD NOT BE HAPPIER!!!!! My map is complete thank you soo much for the help, there's no way I could have finished it without your help thanks allot!!!
Side note: In my map i changed the "mid eq" knob to a "key" knob instead
<map value="EQ_MID" action="key" />
For some reason this last go around it stopped working, I restarted VDj, I tried remapping to normal mid eq, which worked fine, then back again to key but no luck, any insight to what may cause a little bug like that?
Side note: In my map i changed the "mid eq" knob to a "key" knob instead
<map value="EQ_MID" action="key" />
For some reason this last go around it stopped working, I restarted VDj, I tried remapping to normal mid eq, which worked fine, then back again to key but no luck, any insight to what may cause a little bug like that?
Posted Thu 05 Sep 13 @ 4:20 pm
hello, I have some problems... i't stops ......
Posted Mon 18 Nov 13 @ 11:11 am
Can You post the mapping file?I desperately need one. I can't do crap with writing scripts
Posted Sun 28 Sep 14 @ 5:40 pm
Nobody will post files that you are not entitled to.
Please see the reply to your other message in the hardware technical support forum:
http://www.virtualdj.com/forums/194250/Hardware_Technical_Support/Help_with_Behringer_CMD_Studio_4A_Midi_controller__running_Mac_OS_X_Mavericks__and_using_Virtual_DJ_Home.html
NOTE: Please do not post a message on the same subject more than once. Please read the forum rules.
Please see the reply to your other message in the hardware technical support forum:
http://www.virtualdj.com/forums/194250/Hardware_Technical_Support/Help_with_Behringer_CMD_Studio_4A_Midi_controller__running_Mac_OS_X_Mavericks__and_using_Virtual_DJ_Home.html
NOTE: Please do not post a message on the same subject more than once. Please read the forum rules.
Posted Mon 29 Sep 14 @ 6:02 am