Behringer CMD Studio 4a mapping help

Behringer CMD Studio 4a mapping help

Hey guys most of this is a continuation from the Behringer CMD line Review thread, so I’ll try and catch everyone up.

KingCast

[QUOTE]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” />

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![/QUOTE]

synthet1c

[QUOTE]where you have the condition, you are not querying anything, The way VDJScript works is like this

query ? action if true : action if false

for the query you need to ask something, that could be whether the effect is active, or if you are shifted or really anything.

Also the simplest way to make any modifications to your mapping is through the config menu, not in the XML file, as the mapping editor will convert special characters of xml for you.

The simplest thing you could do without having to know how it was mapped is query if the effects are active eg.

effect ‘backspin’ active on ? on : effect ‘dsp_distorter’ active on ? on : off
effect ‘brake’ active on ? on : effect ‘flanger’ active on ? on : off
effect ‘flangedLoopOut’ active on ? on : effect ‘dsp_reverb’ active on ? on : off
effect active on ? blink 333ms : off

I also made LED four blink three times a second if any effect is active just to show you LED’s can easily be made to blink at set intervals.

And to make the keylock LED blink to be beatgrid, you would use ‘get beatgrid’. If you want the LED to blink on the bass drum you would use ‘sync’ for the LED.[/QUOTE]

KingCast

[QUOTE]Thanks synthet1c, This part of the map was contributed by some one else, I didn’t care that it looked weird because it worked, it’s set up so that fx assign is like a shift button for fx 1,2,3.

Here’s the whole map and again thanks in advance for the assistance

<?xml version="1.0" encoding="UTF-8"?> [/B][/SIZE][/QUOTE]

synthet1c

KingCast

synthet1c

[QUOTE]You would need to add the fx select buttons as they aren’t included in the mapping file. To do that you need to open the mapping editor of the config menu. from there press action learn then hit the 1st fx assign on the controller. paste the following in the action box

set ‘FXSel’ 0

repeat for the 2nd button. and map the following

set ‘FXSel’ 1

the LED’s for the fx select buttons will be

var ‘FXSel’ 0 ? on : off

and for the second fx select button

var ‘FXSel’ 1 ? on : off

then for the effect buttons you need to add the shift to them

LEDS for the effects will be mapped as

var ‘FXSel’ 1 ? effect ‘backspin’ active on ? on : off : effect ‘dsp_distorter’ active on ? on : off
var ‘FXSel’ 1 ? effect ‘brake’ active on ? on : off : effect ‘flanger’ active on ? on : off
var ‘FXSel’ 1 ? effect ‘flangedLoopOut’ active on ? on : off : effect ‘dsp_reverb’ active on ? on : off
filter 50% ? off : blink 333ms

buttons for effects will be mapped as

var ‘FXSel’ 1 ? effect ‘backspin’ active : effect ‘dsp_distorter’ active
var ‘FXSel’ 1 ? effect ‘brake’ active : effect ‘flanger’ active
var ‘FXSel’ 1 ? effect ‘flangedLoopOut’ active : effect ‘dsp_reverb’ active
filter 50%

knobs for effects will be mapped as

var ‘FXSel’ 1 ? effect ‘backspin’ slider 1 : effect ‘dsp_distorter’ slider 1
var ‘FXSel’ 1 ? effect ‘brake’ slider 1 : effect ‘flanger’ slider 1
var ‘FXSel’ 1 ? effect ‘flangedLoopOut’ slider 1 : effect ‘dsp_reverb’ slider 1
filter

Also the way it’s mapped is when shifted you will access; backspin, brake and flanged loopout. if not shifted it will access; distorter, flanger & reverb., If you want it the other way around just change the effect name’s around. By the way, you can change the effects name’s to anything you prefer from the list of available effects or change the name’s to numbers to access the particular slot. This is better if you want to be able to select your own effects in each slot, but you would need a skin that show’s three or four effect slots.

If you want something different like using slots instead, start a new thread and I’ll help you get it sorted.

EDIT ---------------------------

I didn’t realize that there was 4 absolute knobs in the effect section, I changed the mapping to have the filter on the fourth knob[/QUOTE]

KingCast

synthet1c

KingCast

[QUOTE] effects will be mapped as

var ‘FXSel’ 1 ? effect ‘backspin’ slider 1 : effect ‘dsp_distorter’ slider 1
var ‘FXSel’ 1 ? effect ‘brake’ slider 1 : effect ‘flanger’ slider 1
var ‘FXSel’ 1 ? effect ‘flangedLoopOut’ slider 1 : effect ‘dsp_reverb’ slider 1
filter
For the knobs I think that part of my map is fine, I’ll be trying it out in a few so I i’ll find out any way but here is my current knob script.

So knob 1 is a dedicated filter knob, knobs 2 and 3 control the parameters of any of the effects being engaged and knob 4 is effect select so I can use more than 6 effects if I need to. Let me know what you think.[/QUOTE]

synthet1c

KingCast

[QUOTE]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. Other than that this is beautiful, thank you sooo much for the help, I still have a long way to go before i really understand the vdj language but I love all the options. SERIOUSLY thanks for all the help!

<?xml version="1.0" encoding="UTF-8"?> [/QUOTE]

synthet1c

[QUOTE]no worries mate, but what do you want the button and led to do?

Something I would suggest is emulate traktors advanced and chained effects eg.

knob 2
var ‘chained’ ? effect 1 slider 1 : effect slider 1

button 2
var ‘chained’ ? effect 1 active : effect active

led 2
var ‘chained’ ? effect 1 active ? on : off : effect active ? on : off

knob 3
var ‘chained’ ? effect 2 slider 1 : effect slider 2

button 3
var ‘chained’ ? effect 2 active : effect button 1

led 3
var ‘chained’ ? effect 2 active ? on : off : effect button 1 1 ? on : off

knob 4
var ‘chained’ ? var ‘select’ ? effect 2 select : effect 1 select : effect select

button 4
toggle ‘chained’ & set ‘select’ while_pressed

led 4
var ‘chained’ ? on : off

now you will change the effect parameters. If the led is off you will control parameters 1 & 2 of the selected effect and the first button with knob 2’s button. However if the fourth led is on you have activated the ‘chained’ shift which will control the activation and first parameter of the effects in slot’s 1 & 2, You will probably need a different skin to see the slots though.

One annoying unavoidable thing with the mapping is that to select different effects in slot 2 you need to start with the fourth led off, press and hold the fourth button and now you will be able to change the second effect, as long as you have the fourth led on you will be able to change slot 1.

There is a million other things you could do, if you don’t like it let me know. And once again you should start a new thread, most of this coding just adding junk to the thread and not really applicable for everyone.[/QUOTE]

Ok everyone is now caught up. Synthet1c thanks for the suggestions but this map is really tailored to my style so I really would like to keep it if that’s alright. Ok so 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 get that because my current setup the 4th fx button still lights up all the time because it is set to be ON when an effect is active.

So i’m trying to figure out a work around, THANKS AGAIN!

To do that you just need to specify the effect you want to be controlling eg

effect 4 active ? on : off

Also as cstoll said on the VDJ Forum, You don’t need to have the condition, I just use it in case you want to use a blink state instead of just on and off as I often want effects led’s to blink for an extra warning they are activated. You could simply script

effect 4 active

and it will work the same. You could also look into changing the definition file to have a default for the LED’s, it will mean for simple scripts you don’t need a separate LED mapping, If you use a text editor like ‘sublime text’ or something that accepts regular expression you could use find and replace to add the default.

find:
name="(LED_[_A-Z0-9]*)"

replace:
name=“LED_$1” default=“$1”

When i tried your blinking script I liked it so I was gonna try and figure out a way of adding it to my end result, cstoll was saying they’re might be a way of excluding the effects I already have predetermined (eg "backspin,dsp_distorter,brake,flanger,flangedLoop,dsp_reverb) so that the other effects I choose using the effect selector knob, (4),
would result in the 4th fx button led to appear to behave normal. eg button would change color when effect is active and back to normal when not.

cstoll from VDj forum

[QUOTE]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.[/QUOTE]

And this caps off this mapping problem I had. A massive thank you to synthet1c for taking the time to help me out with this, I would have been running around in circles if it wasn’t for you, SERIOUSLY THANK YOU FOR ALL YOUR HELP!!! I could not be happier with my end result.

if you wan’t cstoll’s mapping to blink change the led to

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 ? blink 333ms : off

you can change the miliseconds to anything you like, anywhere else in your mapping you can just change “on” to “blink”

OK cool, thanks synthe1c. Side note: In my map i changed the “mid eq” knob to a “key” knob instead

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?

“key” should work fine, but maybe try “key_smooth”

Yeah I tried both with no luck, very weird.

Maybe you have the master tempo on “pure scratch” in the (config → performances → master tempo) tab. Set it to “fast stretching” not “pure scratch” That’s the only way I could replicate your problem.

I’m positive I do have it ON POSITIVE SCRATCH, so I’ll try this in a few hours and report back. Thanks again Synthet1c for going above and beyond!

Ok I got a new mini project, I would like my Play/Pause button to activate TTS v2.dll (Turntable Start) when nothing is playing yet and brake.dll when the song is playing. These were 2 of my favorite old school effects when I was just dj’n with turntables and I wanted to see if it was possible to bring some old school into the new school.

The script that would need to be amended is as follows:

As usual thanks for any assistance!

What you are asking for is

play ? effect ‘TTS’ active off & effect ‘brake’ active on : effect ‘brake’ active off & effect ‘TTS’ active on

but I highly recommend that you use chackl’s great vinyl brake plugin, it sounds much better than the standard brake and turntable start. It also uses physics to put the playhead exactly where it should be unlike the standard effects.


CDJ Vinyl Brake

Sounds good I’ll check it out, in the mean time I think there might be a script error here some where as VDj didnt recognize the map when I put it in. But what the hell do I know your the VDj C++ wiz.

Thanks again synthet1c for helping me out!!!

I just tried it out.. it acts pretty weird… when the deck was stopped it will wind up then down then up again. If I were you I would just use chackl’s plugin, it automatically detects if the deck is playing or not..

effect ‘vinylbrake’ active

Ok sounds good, I’ll try it out, Thanks again!!!