Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: VirtualDJ mapping for Hercules MK2 FX1 button
Hello everyone, I am trying to create a custom mapping for my Hercules DJ Console MK2 and need some help... On the left deck, the physical buttons are FX3, FX2, FX1. But on the right deck, the corresponding physical buttons are FX1, FX2, FX3...

So at the moment, my code on the FX1 button is:
var 'djc' 0 ? deck left effect select +1 & deck right effect select -1 : var 'djc' 1 ? hot_cue 1 : loop_double


I need help with this part: "deck left effect select +1 & deck right effect select -1"
this 'works' but it is lazy programming.
What I'd like is for the system to know when I am pressing the FX button on the left side versus the right side. Is there any way to detect this? I was trying to do some kind of IF statement using deck_select but couldn't figure it out, any tips please?



 

Posted Mon 05 Jun 23 @ 8:48 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Strange that the Keys are named like that. Is yoru device labeled like this , or is it how the Keys come up when pressed ?

The query is device_side 'left' ? ActioForLeftSide : ActionForRightSide

So try ..
FX1
var 'djc' 0 ? device_side 'left' ? effect_select -1 : effect_select +1 : var 'djc' 1 ? device_side 'left' ? hot_cue 1 : hot_cue 3 : device_side 'left' ? loop_half : loop_double

FX3:
var 'djc' 0 ? device_side 'left' ? effect_select +1 : effect_select -1 : var 'djc' 1 ? device_side 'left' ? hot_cue 3 : hot_cue 1 : device_side 'left' ? loop_double : loop_half


 

Posted Mon 05 Jun 23 @ 2:28 pm
@DJDAD thank you so much for your help, spot on!!

For anybody else with a Hercules MK2, here is the final custom mapping:

FX1 BUTTON:
var 'djc' 0 ? device_side 'left' ? effect_select -1 : effect_select +1 : var 'djc' 1 ? device_side 'left' ? hot_cue 3 : hot_cue 1 : device_side 'left' ? loop_double : loop_half


FX2 BUTTON:
var 'djc' 0 ? effect active : var 'djc' 1 ? hot_cue 2 : loop_button


FX3 BUTTON:
var 'djc' 0 ? device_side 'left' ? effect_select +1 : effect_select -1 : var 'djc' 1 ? device_side 'left' ? hot_cue 1 : hot_cue 3 : device_side 'left' ? loop_half : loop_double


PITCHBEND+ BUTTON:
loop_move +1


PITCHBEND- BUTTON:
loop_move -1



 

Posted Mon 05 Jun 23 @ 8:40 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
DJRogerBorges wrote :
For anybody else with a Hercules MK2, ...

Yeah there must be plenty LOL

 

Posted Tue 06 Jun 23 @ 12:18 am