Connexion rapide:  

Forum: VirtualDJ Technical Support

Sujet Help mapping Kontrol Z2

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Hello I just got a Kontrol Z2, tweaked a few simple commands to my like, slipmode,looprolls,loopjumps,FX,etc, now I wanted to control Deck 3 and the Sampler on the Z2 pads.
by default we can change hotcues 1-4 and 5-8 by switching on "HOT A" or "HOT C" ,
so I edited it and make it like Traktor: press "HOT A" (LED on) access hotcues 1-4 ; press again "HOT A" (LED blink) and access hotcues 5-8
[cycle 'whcues' 2 and for LEDs var 'whcues' 1? blink : on ]


http://www.virtualdj.com/manuals/hardware/ni/z2/layout/hotcues.html
http://www.virtualdj.com/manuals/hardware/ni/z2/layout.html
now I wanted to use "HOT C" for the deck 3 Hotcues 1-4 & 5-8 same has deck 1
and use "HOT D" for the Samplepads 1-4 & 5-8
when I got more than one variable/query I get confused and things get messed,
help please thank you
 

Posté Wed 28 Feb 18 @ 11:12 pm
last year djdad helped me creating a script for my vestax padone, maybe I should use the same script??just changing the effects for hot cues??
thank you
deck left set 'test1' 1 while_pressed & down ? deck left effect_active 'echo' on & deck left effect_slider 'echo' 2 20% : deck left var 'test2' 1 ? deck left effect_slider 'echo' 2 30% : deck left var 'test3' 1 ? deck left effect_slider 'echo' 2 40% : deck left var 'test4' 1 ? deck left effect_slider 'echo' 2 50% : deck left effect_active 'echo' off
 

Posté Fri 02 Mar 18 @ 10:57 am
Solution:
<map value="HOT_A" action="var_equal 'whcues' 0 ? set 'whcues' 1 : set 'whcues' 0" />
<map value="HOT_B" action="var_equal 'whcues' 0 ? set 'whcues' 1 : set 'whcues' 0" />
<map value="HOT_C" action="var_equal 'whcues' 2 ? set 'whcues' 3 : set 'whcues' 2" />
<map value="HOT_D" action="var_equal 'whcues' 2 ? set 'whcues' 3 : set 'whcues' 2" />
<map value="LED_HOT_A" action="var_equal 'whcues' 0 ? on : var_equal 'whcues' 1 ? blink : off" />
<map value="LED_HOT_B" action="var_equal 'whcues' 0 ? on : var_equal 'whcues' 1 ? blink : off" />
<map value="LED_HOT_C" action="var_equal 'whcues' 2 ? on : var_equal 'whcues' 3 ? blink : off" />
<map value="LED_HOT_D" action="var_equal 'whcues' 2 ? on : var_equal 'whcues' 3 ? blink : off" />
<map value="HOT_1" action="var_equal 'whcues' 3 ? shift ? sampler_stop 5 : sampler_pad 5 : var_equal 'whcues' 2 ? shift ? sampler_stop 1 : sampler_pad 1 : var_equal 'whcues' 1 ? shift ? delete_cue 5 : hot_cue 5 : shift ? delete_cue 1 : hot_cue 1" />
<map value="LED_HOT1" action="var_equal 'whcues' 3 ? get_sample_color 5 : var_equal 'whcues' 2 ? get_sample_color 1 : var_equal 'whcues' 1 ? hot_cue 5 ? shift ? blink 333ms ? cue_color 5 : off : cue_color 5 : color 15% 'white' : hot_cue 1 ? shift ? blink 333ms ? cue_color 1 : off : cue_color 1 : color 15% 'white'" />
 

Posté Fri 02 Mar 18 @ 12:45 pm
thats great! I will try it as soon has I get home! thanks a lot!

edit: what about deck 3? can I just add deck 3 hot_cue to the var ´whcues´ 3?
can I use HOT C for deck 3 and HOT D for Sampler?
thanks again
 

Posté Fri 02 Mar 18 @ 7:55 pm
Hello , just edited the mapping with your scripts, HOTs & LEDs,copied and tweaked for the rest of the Cues, its looking great, and performing great! thank you so much Phantom
but I need the sampler only on the right side, now I need the 3rd deck on the left side please (HOT C=deck 3 ; HOT D=sampler)
thank you
I tried and add some action_deck 3/left deck to your script, no success....
 

Posté Fri 02 Mar 18 @ 10:19 pm
edited your scripts for these to try and get the 3rd deck on the left....
HOT_C = var_equal 'whcues' 4 ? set 'whcues' 5 : set 'whcues' 4

HOT_1 = var_equal 'whcues' 3 ? shift ? sampler_stop 5 : sampler_pad 5 : var_equal 'wscues' 5 ? shift ? deck 3 delete_cue 5 : deck 3 hot_cue 5 : var_equal 'wscues' 4 ? shift ? deck 3 delete_cue 1 : deck 3 hot_cue 1 : shift ? sampler_stop 1 : sampler_pad 1 : var_equal 'whcues' 1 ? shift ? delete_cue 5 : hot_cue 5 : shift ? delete_cue 1 : hot_cue 1

with this script I only get the sampler....no success

HOT_C = var_equal 'whcues' 2 ? set 'whcues' 3 & set 'deck3' 1 : set 'whcues' 2 & set 'deck3' 1

HOT_1 = var_equal 'whcues' 3 ? var_equal 'deck3' 1 ? shift ? deck 3 delete_cue 5 : deck 3 hot_cue 5 : shift ? sampler_stop 5 : sampler_pad 5 : var_equal 'deck3' 1 ? shift ? deck 3 delete_cue 1 : deck 3 hot_cue 1 : shift ? sampler_stop 1 : sampler_pad 1 : var_equal 'whcues' 1 ? shift ? delete_cue 5 : hot_cue 5 : shift ? delete_cue 1 : hot_cue 1

no success, I get deck 3 and sampler, but then loose deck 2...help please
thank you
 

Posté Sat 03 Mar 18 @ 12:42 am
tried this script today:
HOT C = var_equal 'whcues' 4 ? set 'whcues' 5 : set 'whcues' 4

HOT_1= var_equal 'whcues' 3 ? shift ? sampler_stop 5 : sampler_pad 5 : var_equal 'whcues' 5 ? shift ? deck 3 delete_cue 5 : deck 3 hot_cue 5 : var_equal 'whcues' 4 ? shift ? deck 3 delete_cue 1 : deck 3 hot_cue 1 : var_equal 'whcues' 2 ? shift ? sampler_stop 1 : sampler_pad 1 : var_equal 'whcues' 1 ? shift ? delete_cue 5 : hot_cue 5 : shift ? delete_cue 1 : hot_cue 1

its getting better I think, but still have issues: deck 1 and 2 get stuck on hotcues 5-8, I can delete(shift) cues 1-4 and 5-8, but can't go back to cues 1-4,...... deck 3 and sampler work fine.
HELP please, almost finished...
thank you
 

Posté Sat 03 Mar 18 @ 3:10 pm
I think I got it!
hot_1 = var_equal 'whcues' 3 ? shift ? sampler_stop 5 : sampler_pad 5 : var_equal 'whcues' 5 ? shift ? deck 3 delete_cue 5 : deck 3 hot_cue 5 : var_equal 'whcues' 4 ? shift ? deck 3 delete_cue 1 : deck 3 hot_cue 1 : var_equal 'whcues' 2 ? shift ? sampler_stop 1 : sampler_pad 1 : var_equal 'whcues' 1 ? shift ? delete_cue 5 : hot_cue 5 : shift ? delete_cue 1 : var_equal 'whcues' 0 ? hot_cue 1 : hot_cue 1

3 decks and sampler! going for the LEDs will post for help, when I get in trouble.
 

Posté Sat 03 Mar 18 @ 4:08 pm
now I'm stuck on mapping the LEDs
edited Phantom script for this one:
LED HOT_1= var_equal 'whcues' 3 ? get_sample_color 5 : var_equal 'whcues' 2 ? get_sample_color 1 : var_equal 'whcues' 1 ? hot_cue 5 ? shift ? blink 500ms ? cue_color 5 : off : cue_color 5 : color 15% 'white' : hot_cue 1 ? shift ? blink 500ms ? cue_color 1 : off : cue_color 1 : var_equal 'whcues' 4 ? deck 3 hot_cue 5 ? shift ? blink 500ms ? deck 3 hot_cue 5 : off : deck 3 cue_ color 5 : color 15% 'white' : deck 3 hot_cue 1 ? shift ? blink 500ms ? deck 3 cue_color 1 : off : deck 3 cue_color 1 : color 15% 'white : var_equal 'whcues' 5 ? deck 3 hot_cue 5 : shift ? blink 500ms ? deck 3 cue_color 5 : color 15% 'white' : deck 3 hot_cue 1 ? shift ? blink 500ms ? deck 3 cue_color 1 : off : deck 3 cue_color 1 : color 15% 'white' : color 15% 'white'
deck 1 and 2 and sampler are fine, but deck 3 isn't light proper, only if deck 1 is empty ,can someone HELP me out?
thank you
 

Posté Sat 03 Mar 18 @ 6:39 pm
LED_HOT_1
var_equal 'whcues' 3 ? get_sample_color 5 : var_equal 'whcues' 2 ? get_sample_color 1 : var_equal 'whcues' 1 ? hot_cue 5 ? shift ? blink 500ms ? cue_color 5 : off : cue_color 5 : color 15% 'white' : hot_cue 1 ? shift ? blink 500ms ? cue_color 1 : off : cue_color 1 : var_equal 'whcues' 5 ? deck 3 hot_cue 5 ? shift ? blink 500ms ? deck 3 cue_color 5 : off : deck 3 cue_ color 5 : color 15% 'white' : deck 3 hot_cue 1 ? shift ? blink 500ms ? deck 3 cue_color 1 : off : deck 3 cue_color 1 : color 15% 'white' : var_equal 'whcues' 4 ? deck 3 hot_cue 5 ? shift ? blink 500ms ? deck 3 cue_color 5 : off : deck 3 cue_color 5 : color 15% 'white' : deck 3 hot_cue 1 ? shift ? blink 500ms ? deck 3 cue_color 1 : off : deck 3 cue_color 1 : color 15% 'white' : var_equal 'whcues' 0 ? hot_cue 5 ? shift ? blink 500ms ? cue_color 5 : off : cue_color 5 : color 15% 'white' : hot_cue 1 ? shift ? blink 500ms ? cue_color 1 : off : cue_color 1 : color 15% 'white'
deck 3 lights up only when deck 1 is empty/unloaded...
no success.. my brain is melting.....
help please
thank you

 

Posté Sat 03 Mar 18 @ 8:23 pm
Why don't you just wait for help, rather than just posting again and again? People have been warned against doing that on the forum.
 

Posté Sun 04 Mar 18 @ 3:44 pm
sorry, I was posting the best scripts I could build. maybe someone could read them, and find the errors.
I found a solution,
LED_HOT_3= var_equal 'whcues' 3 ? get_sample_color 5 : var_equal 'whcues' 2 ? get_sample_color 1 : var_equal 'whcues' 4 ? deck 3 hot_cue 3 ? shift ? blink 500ms ? deck 3 cue_color 3 : off : deck 3 cue_color 3 : color 15% 'white' : var_equal 'whcues' 5 ? deck 3 hot_cue 7 ? shift ? blink 500ms ? deck 3 cue_color 7 : off : deck 3 cue_color 7 : color 15% 'white' : var_equal 'whcues' 1 ? hot_cue 7 ? shift ? blink 500ms ? cue_color 7 : off : cue_color 7 : color 15% 'white' : hot_cue 3 ? shift ? blink 500ms ? cue_color 3 : off : cue_color 3 : color 15% 'white'

when I finish the Z2 Mapper I will share with VDJ community. it will control 3 decks, and sampler.
thank you PhantomDJ for the code scripts, you helped me a lot.
 

Posté Sun 04 Mar 18 @ 10:37 pm
So, you figured this out ?
I can come up with a script, but if you sorted this then it would be best to not clutter the thread
 

Posté Mon 05 Mar 18 @ 7:25 am
I think I did figure out, can you please check the scripts for errors? thank you

hot_c= var_equal 'whcues' 4 ? set 'whcues' 5 : set 'whcues' 4

hot_1 = var_equal 'whcues' 3 ? shift ? sampler_stop 5 : sampler_pad 5 : var_equal 'whcues' 5 ? shift ? deck 3 delete_cue 5 : deck 3 hot_cue 5 : var_equal 'whcues' 4 ? shift ? deck 3 delete_cue 1 : deck 3 hot_cue 1 : var_equal 'whcues' 2 ? shift ? sampler_stop 1 : sampler_pad 1 : var_equal 'whcues' 1 ? shift ? delete_cue 5 : hot_cue 5 : shift ? delete_cue 1 : hot_cue 1

led_hot_1 = var_equal 'whcues' 3 ? get_sample_color 5 : var_equal 'whcues' 2 ? get_sample_color 1 : var_equal 'whcues' 4 ? deck 3 hot_cue 1 ? shift ? blink 500ms ? deck 3 cue_color 1 : off : deck 3 cue_color 1 : color 15% 'white' : var_equal 'whcues' 5 ? deck 3 hot_cue 5 ? shift ? blink 500ms ? deck 3 cue_color 5 : off : deck 3 cue_color 5 : color 15% 'white' : var_equal 'whcues' 1 ? hot_cue 5 ? shift ? blink 500ms ? cue_color 5 : off : cue_color 5 : color 15% 'white' : hot_cue 1 ? shift ? blink 500ms ? cue_color 1 : off : cue_color 1 : color 15% 'white'
 

Posté Mon 05 Mar 18 @ 3:18 pm
Hello again, I need help, the Z2 has Load A / B buttons to load or duplicate tracks, the commands are only "load" and "clone_deck", now I wanted to map the the A/B buttons to clone deck A to B or vice versa, the native Z2 mapper clone deck randomly clones to deck 3 and 4 also...
thank you
 

Posté Mon 09 Apr 18 @ 10:27 pm
solution
djdad wrote :

device_side 'left' ? deck right clone_deck left : deck left clone_deck right

 

Posté Tue 10 Apr 18 @ 8:44 am
djdadPRO InfinityDevelopment ManagerMember since 2005
If you are running the latest Build, you can try, just ..
clone_from_deck
or if you want to click/tap to load and double-click/tap to clone, you can try..
doubleclick ? clone_from_deck : load
 

Posté Tue 10 Apr 18 @ 1:42 pm
in need of help please, can I associate the loop size with beatjump? lets say the Z2 loop size is at 8, so beatjumping would be 8 beats, if the Z2 loop is at 16, beat jump 16 beats, on so on. is this possible?
thank you
 

Posté Mon 04 Mar 19 @ 8:55 pm


(Les anciens sujets et forums sont automatiquement fermés)