Forum: PC Version Technical Support - Topic: Help with conditional statements in VDJ Script - ADVANCED

Discussions about the PC version of VirtualDJ, Numark Cue, Virtual Vinyl or AtomixMP3.
Hardware Support questions should be posted to the Hardware Technical Support forum. Before posting, please read the FAQ.
In case of problems or protection error please contact Service Support.
VirtualDJ Forum
PC Version Technical...
Help with conditi...


Autor - Topic: Help with conditional statements in VDJ Script - ADVANCED -

chiments
PRO Infinity
Member since 2007

Posted Tue 23 Mar 10 @ 2:53 pm
Hello - I am new to MIDI programming in VDJ, but new as in I've never done it before in VDJ not that I'm a complete idiot. I need help with the conditional statements.

I have an AKAI MPK61 which has 16 pads that I would like to map to cue points. I understand the basic functionality of how do it but I would like a little more advanced function. I would like to query a specifically used cue and if it is used do one thing and then if it is not used do another. My trouble is that first part.

I would like:

IF 'cue 1' is not set and 'deck x' is NOT playing THEN set 'cue 1' and play while pressed OR for 2000ms
IF 'cue 1' is not set and 'deck x' is PLAYING THEN set 'hot cue 1' (so that it continues to play and reverts to 'cue 1' when pressed but plays (not while pressed))
IF 'cue 1' IS set and 'deck x' is NOT playing then goto 'cue 1' and play while pressed OR for 2000ms
IF 'cue 1' IS set and 'deck x' IS playing then revert to cue point and continue to play.

I have tried several different strings and i have gotten to where i think it is going to work and everything does except when the deck is paused or stopped and i hit the desired pad, it plays, but it seems the 'while_pressed' functionality is ignored.

I am not sure if my beginning query is working. How do I make VDJ check to see if a specific cue point is in fact set?

goto_cue 1 ? cue 1 : hot_cue 1 does what i want, but does not use the 'while_pressed' function like it sais in the description. I basically do not want to be able to overwrite the cue point if the deck is paused as well as playing all the way through.

I hope this makes sense. Please ask if you have any questions. I am also uncertain on the WIKI where it said about using [...] and | in the arguments.. Maybe that is my problem.

Thank you in advance!

ReThink
PRO Infinity
Member since 2009

Posted Tue 23 Mar 10 @ 4:16 pm
Edit - Misread your post.

chiments
PRO Infinity
Member since 2007

Posted Tue 23 Mar 10 @ 9:06 pm
How can I clarify?

acw_dj
PRO Infinity
Member since 2005

Senior staff
Posted Wed 24 Mar 10 @ 10:23 am
IF 'cue 1' is not set and 'deck x' is NOT playing THEN set 'cue 1' and play while pressed OR for 2000ms"

Don't know what are you trying... but cue_play don't work in there for you? Because that's what it does.


IF 'cue 1' is not set and 'deck x' is PLAYING THEN set 'hot cue 1' (so that it continues to play and reverts to 'cue 1' when pressed but plays (not while pressed))

IF 'cue 1' IS set and 'deck x' is NOT playing then goto 'cue 1' and play while pressed OR for 2000ms

IF 'cue 1' IS set and 'deck x' IS playing then revert to cue point and continue to play.



cue_play does it for me... check it out

chiments
PRO Infinity
Member since 2007

Posted Thu 25 Mar 10 @ 11:30 am
Thanks for the response - where are you entering 'cue_play' as a conditional statement? or by itself?

elchuntytrucha
Home user
Member since 2011

Posted Thu 12 May 11 @ 9:59 pm
hello, is it possible to use a keyboard with virtual dj to record and play over samples? you kno, like a regular keyboard? if so, how do i connect it so i can hear the keyboard playing through the program?

synthet1c
PRO Infinity
Member since 2010

Posted Fri 13 May 11 @ 12:15 am
I think the best way to achieve this would be to have a shift button that would arm recording while it was held down.

shift button
set 'samp_rec' while_pressed

sampler play/record
var_equal 'samp_rec' ? sampler # record : sampler # play_stop

You just need to substitute # for the applicable sampler number. Remember you need to save the samples before you quit VDJ or they will be lost.

VDJ is the most powerful weapon of in your dj arsenal, It is worth buying to support atomix so they continue to improve this amazing product, It also means you get access to updates forever, and the vast amount of user created plugins to play with to add variety to your sets