Ingresar:     


Forum: General Discussion

Tópico: VDJScript - How to evaluate state T_MODE?
HI,
my controller offers a button that in activity is shown as T_MODE=on/off.

Question: how can I evaluate that state in script?
I want to remapp my "loop" button as follows:

$t_mode = 'on' ? loop_select 1 & loop : loop
T_MODE = 'on' ? ...

Tried both without success.
Any idea?

I have a Reloop Mixtour controller, if that matters.
 

Mensajes Thu 28 May 26 @ 9:53 pm
t mode button calls this

set cuemode 0
therefore, your loop button should be mapped as so
var cuemode 0 ? loop_select 1 & loop : loop
 

I ment I want to detect the "while t_mode button is pressed down" state.
cuemode 0 is a state that is also active when t_mode button was released (it only switches the cuemode-banks).
 

t mode button
set cuemode 0 & set $myShift 1 while_pressed


var $myShift 1 ? loop 1 : loop
 

Thanks a lot :)
 

Today I discovered my mapping sadly does not work.
This is what I have:

PLAY Button: var $t_mode 1 ? play : pause
T_MODE Button: set 'cuemode' 0 & set '$t_mode' 1 while_pressed

I would expect the PLAY button to only play if T_MODE button is pressed. Otherwise it should pause, and thus NOT play anything.

BUT: whenever I press PLAY, it starts playing. No matter if T_MODE is pressed on not.

What could be wrong?

 

Hmm, the solution is to use the variable without $:

set 't_mode' ...
var 't_mode' ? ... : ...