Forum: General Discussion
blckjck
PRO Infinity


Member since 2008
While using automix I'd like to be able to skip to the next song in the list with my LOAD button on my DDJ-RX. I can do this already with the keyboard after mapping the ESC key to automix_next. I spent some time reading in the Script School thread and some other references. I thought I understood the logic. My ultimate goal is to check to see if the deck is playing and automixing. If it is, and I hold the button, then mix to the next song. But, I want the LOAD button to function normally on the deck that is not automixing.
Original Mapping:
var 'hwmixer' ? nothing : holding ? unload : load
If I understand right:
Is the controller in hardware mode on this channel
If yes, do nothing
If no, move on to the next part
Is the button being held
If yes, unload
If no, load
So, first I tried to see if I could do it without holding.
var 'hwmixer' ? nothing : play & automix ? automix_skip : holding ? unload : load
When automix is off, LOAD behaves normally. When automix is on, and I press LOAD on the deck that is actively automixing, the next automix track gets mixed in. But, if I press the LOAD button on a deck that is empty and not playing, it loads the highlighted track from the browser and starts playing it. My guess is I need to add more logic. But, I don't know what to test.
Mensajes Wed 16 Jan 19 @ 3:04 pm
Adion
PRO Infinity










CTOMember since 2006
& in this case is used to tell vdjscript to do 2 actions, not to tell it to check both sides for the if-part.
So it will do
play
and then
automix ? automix_skip : holding
You should use ? to make it into 2 questions, first checking play, then checking automix
Mensajes Wed 16 Jan 19 @ 3:15 pm
locodog
PRO Infinity





ModeratorMember since 2013
Let's go thru it
var 'hwmixer' ? nothing : play ? automix ? automix_skip : holding ? unload : load
HW? true do noting : false, are you playing? true,are you automix on? true, skip : false, are you holding? true, unload : false, load : we haven't had a reply if playing? is false
You were asking if playing? = false, do nothing (no command)
machines can't guess {yet} ;-)
Mensajes Thu 17 Jan 19 @ 8:14 pm
locodog
PRO Infinity





ModeratorMember since 2013
There's always a chance of a bug/weirdness, but sticking to boolean/binary, it should be predictable. Every query has two replies, the two replies come before any two query-replies before it, but the false reply comes after any replies to queries contained in the previous queries true reply.
[Bold bit should be enough]
Mensajes Thu 17 Jan 19 @ 9:33 pm