I'm developing a special skin for Virtual DJ.
I've a problem with chaining actions.
Tutorial says that to join several action we must use &
action 1 & action 2 & action 3
but in this case i don't know how to do this
<button action="loop" value="2" chan="1" >
<button action="play_pause" chan="1" >
<button action="deck 1 play_pause & loop" value="2" chan="1" > -->It doesn't work
<button action="deck 1 play_pause & deck 1 loop 2"> ->It doesn't work
I would like a macro to do a single button which concat this actions: First it will activate loop (2 beats) on deck 1, after it will play deck 1.
I've tried several codes and it's impossible to do it.
Another question that I haven't found in the tutorial is how to compare two values (not numbers)
Pseudocode
if (deck 1 eq_high > deck 2 eq_high) then action 1 else action 2
Thank you for your help. I'm trying to do my best!
I've a problem with chaining actions.
Tutorial says that to join several action we must use &
action 1 & action 2 & action 3
but in this case i don't know how to do this
<button action="loop" value="2" chan="1" >
<button action="play_pause" chan="1" >
<button action="deck 1 play_pause & loop" value="2" chan="1" > -->It doesn't work
<button action="deck 1 play_pause & deck 1 loop 2"> ->It doesn't work
I would like a macro to do a single button which concat this actions: First it will activate loop (2 beats) on deck 1, after it will play deck 1.
I've tried several codes and it's impossible to do it.
Another question that I haven't found in the tutorial is how to compare two values (not numbers)
Pseudocode
if (deck 1 eq_high > deck 2 eq_high) then action 1 else action 2
Thank you for your help. I'm trying to do my best!
Posted Mon 14 Nov 11 @ 11:17 am
value="" and chan="" is not necessary anymore.
You can simply write
<button action="deck 1 play_pause & deck 1 loop 2">
The above code will execute both actions at the same time. That means that it will actually make a 2 beat loop, and it will kepp looping until you press that button again.
What do you mean it doesnt work ?
As for your second question currently there is no easy way to compare those values. The current VDJscript only allows you to compare variables and values using param_greater, param_smaller etc.
You can simply write
<button action="deck 1 play_pause & deck 1 loop 2">
The above code will execute both actions at the same time. That means that it will actually make a 2 beat loop, and it will kepp looping until you press that button again.
What do you mean it doesnt work ?
As for your second question currently there is no easy way to compare those values. The current VDJscript only allows you to compare variables and values using param_greater, param_smaller etc.
Posted Mon 14 Nov 11 @ 12:49 pm
Thank you for your quick answer! That's good!
I think i tried that code but perhaps I made a mistake :)
I will try your code solution tonight.
Thank you.
I think i tried that code but perhaps I made a mistake :)
I will try your code solution tonight.
Thank you.
Posted Mon 14 Nov 11 @ 1:47 pm
I'm usig the skin
MIX Station SV 04 (V2[1].00_edA).zip
Perhaps i'm doing something wrong or the skin is not right but this code
<button action="deck 1 play_pause & deck 2 loop 2">
<size width="42" height="42"/>
<pos x="469" y="388"/>
<up x="469" y="1823"/>
<down x="779" y="1272"/>
<selected x="779" y="1272"/>
<over x="779" y="1316"/>
</button>
doesn't work
On the other side, I have tried with the VirtualDJ7 default skin and the same code works great.
It's amazing!
What do you think should be the problem? Is because it's an old skin with?
MIX Station SV 04 (V2[1].00_edA).zip
Perhaps i'm doing something wrong or the skin is not right but this code
<button action="deck 1 play_pause & deck 2 loop 2">
<size width="42" height="42"/>
<pos x="469" y="388"/>
<up x="469" y="1823"/>
<down x="779" y="1272"/>
<selected x="779" y="1272"/>
<over x="779" y="1316"/>
</button>
doesn't work
On the other side, I have tried with the VirtualDJ7 default skin and the same code works great.
It's amazing!
What do you think should be the problem? Is because it's an old skin with?
Posted Mon 14 Nov 11 @ 4:47 pm
Yes. On the first line of the skin you can see for which version of VDJ it was created for. If it was created for version 5 then chaining commands won't work.
Posted Mon 14 Nov 11 @ 5:24 pm