action deck X ? FOR DECK X : NOT FOR DECK X
Posté Mon 20 Jul 20 @ 3:47 pm
Then I cannot realize this assignment?
https://www.virtualdj.com/img/317225/47626/mixtrackpro2.jpg
https://www.virtualdj.com/img/317225/47626/mixtrackpro2.jpg
Posté Mon 20 Jul 20 @ 4:19 pm
Why not?
action deck 1 ? os2l_button 'blackout' : nothing
action deck 2 ? os2l_button 'strobe' : nothing
action deck 1 ? os2l_button 'blackout' : nothing
action deck 2 ? os2l_button 'strobe' : nothing
Posté Mon 20 Jul 20 @ 4:21 pm
Can we write multiline VDJscript as Action like this?
Posté Tue 21 Jul 20 @ 1:34 pm
twaga wrote :
Can we write multiline VDJscript as Action like this?
Hello, I think this might be a solution:
action deck 1 ? os2l_button 'RED' : action deck 2 ? os2l_button 'GREEN' : nothing
Posté Tue 21 Jul 20 @ 1:49 pm
I've just confirmed that this VDJscript below works well.
action_deck 1 ? os2l_button "Red" : os2l_button "Green"
action_deck 1 ? os2l_button "Red" : os2l_button "Green"
Posté Tue 21 Jul 20 @ 1:52 pm
hello
I am building custom pad (already done with help of locodog)they are reacting like "ableton" with quantise before next Cue..But my question is about the name of my pad...I want to give the name of the hot_cue (pad1--hotcue 1'name..Pad 2 __hotcue 2 'name') but in the empty text field of Name, no script seems to work...I know that i already talk about this here but I don't find the old threat...
I am building custom pad (already done with help of locodog)they are reacting like "ableton" with quantise before next Cue..But my question is about the name of my pad...I want to give the name of the hot_cue (pad1--hotcue 1'name..Pad 2 __hotcue 2 'name') but in the empty text field of Name, no script seems to work...I know that i already talk about this here but I don't find the old threat...
Posté Thu 10 Dec 20 @ 4:19 pm
if I understand, you want
Pad 1 name: `cue_name 1`
Pad 1 name: `cue_name 1`
Posté Thu 10 Dec 20 @ 4:32 pm
or if you wanna have different alternative (name, number, position) depending on cueDisplay setting :
Pad 1 map Name to : `cue_display 1`
Pad 1 map Name to : `cue_display 1`
Posté Thu 10 Dec 20 @ 5:13 pm
locodog wrote :
if I understand, you want
Pad 1 name: `cue_name 1`
Pad 1 name: `cue_name 1`
exactly
Posté Thu 10 Dec 20 @ 6:36 pm
skyzo76 wrote :
exactly
locodog wrote :
if I understand, you want
Pad 1 name: `cue_name 1`
Pad 1 name: `cue_name 1`
exactly
ok so..i understand that I don't know what is this character not a " not a '..and when i copy paste your code it works...(but i already tried it with ") OK so it was so simply thanks again locodog
Posté Thu 10 Dec 20 @ 6:52 pm
It's a backtick [has a few names, you should see it above your tab key]
https://www.computerhope.com/jargon/b/backquot.htm
in vdj script backticks [`] are used in a few places, mostly when dealing with text, it tells vdj to use what is inside two back ticks as a script, and then parse it as text
for example, you set a variable to 6.
set 'myVar' 6
you could give a pad name something like this
myVar is `get_var 'myVar'`
what would be displayed is
myVar is 6
backticks have uses in more advanced script than just text, but the purpose is the same. parsing script,
set 'myVarSquare' `param_multiply "get_var 'myVar'" "get_var 'myVar'"`
it can be a little confusing when you need to use backticks as some param_ modifiers are expecting a script so they don't need backticks, other param_ modifiers might expect a script or a string so backticks are need to indicated we have passed it a script.
It's just one of those that you learn with practice.
https://www.computerhope.com/jargon/b/backquot.htm
in vdj script backticks [`] are used in a few places, mostly when dealing with text, it tells vdj to use what is inside two back ticks as a script, and then parse it as text
for example, you set a variable to 6.
set 'myVar' 6
you could give a pad name something like this
myVar is `get_var 'myVar'`
what would be displayed is
myVar is 6
backticks have uses in more advanced script than just text, but the purpose is the same. parsing script,
set 'myVarSquare' `param_multiply "get_var 'myVar'" "get_var 'myVar'"`
it can be a little confusing when you need to use backticks as some param_ modifiers are expecting a script so they don't need backticks, other param_ modifiers might expect a script or a string so backticks are need to indicated we have passed it a script.
It's just one of those that you learn with practice.
Posté Thu 10 Dec 20 @ 8:08 pm
Hello Friends, excellent forum.
Please can you help me to create a script or command to execute the progressive "Filter" effect, or a curve for increase or decrease Filter sound fx, by clicking a single button or key. Thanks in advance.
As it the trail or route made by the potentiometer or filter knob, but by pressing a single key. May be trailing Filter fx from 30% to 80%.
Please can you help me to create a script or command to execute the progressive "Filter" effect, or a curve for increase or decrease Filter sound fx, by clicking a single button or key. Thanks in advance.
As it the trail or route made by the potentiometer or filter knob, but by pressing a single key. May be trailing Filter fx from 30% to 80%.
Posté Fri 11 Dec 20 @ 2:59 pm
repeat_start 'filterTwist' ? repeat_stop 'filterTwist' : repeat_start 'filterTwist' 33ms -1 & filter 0% ? repeat_stop 'filterTwist' : filter +0.5%
something like that is the most basic way, I have virtualFX that can do it a bit more advanced, from a position, to a position, over a beat duration.
if you want that post in the virtualFX thread and I'll tweak the one I have here.
something like that is the most basic way, I have virtualFX that can do it a bit more advanced, from a position, to a position, over a beat duration.
if you want that post in the virtualFX thread and I'll tweak the one I have here.
Posté Fri 11 Dec 20 @ 4:36 pm
Thank u very much Locodog, this one is very useful. Ok, yes please go ahead, tweak this script like virtualFX thread.
Something to set a range of Filter FX trail, from - to and reverse to -from if possible.
From center 50% to 80% and return 80% to normal 50% automatically by pressing one key. And functional for another sound FX.
Thanx in advanced.
Something to set a range of Filter FX trail, from - to and reverse to -from if possible.
From center 50% to 80% and return 80% to normal 50% automatically by pressing one key. And functional for another sound FX.
Thanx in advanced.
Posté Sat 12 Dec 20 @ 2:34 am
locodog wrote :
It's a backtick [has a few names, you should see it above your tab key]
https://www.computerhope.com/jargon/b/backquot.htm
in vdj script backticks [`] are used in a few places, mostly when dealing with text, it tells vdj to use what is inside two back ticks as a script, and then parse it as text
for example, you set a variable to 6.
set 'myVar' 6
you could give a pad name something like this
myVar is `get_var 'myVar'`
what would be displayed is
myVar is 6
backticks have uses in more advanced script than just text, but the purpose is the same. parsing script,
set 'myVarSquare' `param_multiply "get_var 'myVar'" "get_var 'myVar'"`
it can be a little confusing when you need to use backticks as some param_ modifiers are expecting a script so they don't need backticks, other param_ modifiers might expect a script or a string so backticks are need to indicated we have passed it a script.
It's just one of those that you learn with practice.
https://www.computerhope.com/jargon/b/backquot.htm
in vdj script backticks [`] are used in a few places, mostly when dealing with text, it tells vdj to use what is inside two back ticks as a script, and then parse it as text
for example, you set a variable to 6.
set 'myVar' 6
you could give a pad name something like this
myVar is `get_var 'myVar'`
what would be displayed is
myVar is 6
backticks have uses in more advanced script than just text, but the purpose is the same. parsing script,
set 'myVarSquare' `param_multiply "get_var 'myVar'" "get_var 'myVar'"`
it can be a little confusing when you need to use backticks as some param_ modifiers are expecting a script so they don't need backticks, other param_ modifiers might expect a script or a string so backticks are need to indicated we have passed it a script.
It's just one of those that you learn with practice.
ok I undestand finally ...super clrear thanks again locodog ;)
Posté Sat 12 Dec 20 @ 2:32 pm
I have an other question : i made a variable called "scale" for the key..scale 0 is major, scale 1 is minor scale 3 Dorian etc...I asked my custom button display the value of the variable (1.2.3 etc) but is this possible to say "name of var scale 0 = "major"...name of var scale 1 = "minor" and display the name in the custom button ? ;)
Posté Sat 12 Dec 20 @ 5:38 pm
sure, example [I won't give you the exact code, because figuring it out is part of the fun :) ]
script action
toggle test
button name
`var test 1 ? get_text "true" : get_text "false"`
script action
toggle test
button name
`var test 1 ? get_text "true" : get_text "false"`
Posté Sat 12 Dec 20 @ 5:45 pm
@MDJ2513, look for the one called "filterTweak"
https://www.virtualdj.com/forums/233818/Addons/virtualFX.html?page=2
https://www.virtualdj.com/forums/233818/Addons/virtualFX.html?page=2
Posté Sat 12 Dec 20 @ 9:10 pm
locodog wrote :
sure, example [I won't give you the exact code, because figuring it out is part of the fun :) ]
script action
toggle test
button name
`var test 1 ? get_text "true" : get_text "false"`
script action
toggle test
button name
`var test 1 ? get_text "true" : get_text "false"`
cool i get it :;) ty (again)
Posté Sat 12 Dec 20 @ 10:22 pm