Connexion rapide:  

Forum: VirtualDJ Technical Support

Sujet Hopefully the last thing I have to figure out

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

Firstly thanks everyone for all the help on the forums, reading these I figured a lot out on my own.

My last issue is to get the play button to blink faster (blink 250) only when one of the hotcue buttons are being pushed.
In my LED_PLAY_PAUSE I have - loaded ? play ? on : blink
I tried - loaded ? play ? on : pad_pushed ? blink 250ms : blink

But it's solid when I hold down a cue button, what am I missing?

If it matters I'm using a Numark MixTrack PRO 3
 

Posté Sat 12 Sep 20 @ 5:52 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
You cant query this, unless you modify the buttons action.

E.g. a button is assigned as .. cue_button
The new action should be ..
 cue_button & set 'buttonpress' 1 while_pressed


Then your LED should be ..
 loaded ? play ? on : var 'buttonpress' ? blink 250ms : blink : off

 

Posté Sun 13 Sep 20 @ 9:19 am
Thank you so much, i didn't realize the argument went after the value, i was getting close, but this did it!
 

Posté Sun 13 Sep 20 @ 11:58 am
I saw your posts on the light thinking the cue button is playing, so I now use 2 variables, one for the play button one for the cue.
Works like serato finally!
 

Posté Sun 13 Sep 20 @ 9:34 pm
NicotuxHome userMember since 2014
If you want to avoid side effects it is better to avoid
loaded ? play ? on : var 'buttonpress' ? blink 250ms : blink : off
and use
loaded ? play ? on : var 'buttonpress' 1 ? blink 250ms : blink : off

reason :
with uninitialized variable 'buttonpress' reading it fails and test will be not receive a value to compare with; as it test against no value, it ends being true ^^
old time reading unknown var was returning 0, test was wrong, now days return value is 'failed' and thus non zero and test is true ^^
testing against 1 , even value is not zero it is not one either and test fail as needed
 

Posté Sun 13 Sep 20 @ 11:15 pm
So what I wound up doing is setting these
to my pads I wanted the blink for - pad 1 & set 'NumarkCue' 1 while_pressed
on my play_pause button - play_pause & toggle 'NumarkPlay'
and then my led_play_pause - var 'NumarkPlay' true ? var 'NumarkCue' 1 ? blink 200ms : blink : on

The only problem i now have is the 'NumarkPlay' doesn't set itself back to false when the song ends
I tried adding a & songpos_remain 100ms ? set 'NumarkPlay' false to the end of the play_pause button, and it doesn't change

As my workaround for now i just use toggle 'NumarkPlay' on my cue button since i don't use it anyways to change the status
 

Posté Mon 14 Sep 20 @ 8:44 am


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