Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 7.85

Dieser Teil des Themas ist veraltet und kann veraltete oder falsche Informationen enthalten

locoDogPRO InfinityModeratorMember since 2013
action deck X ? FOR DECK X : NOT FOR DECK X
 

geposted Mon 20 Jul 20 @ 3:47 pm
twagaPRO InfinityMember since 2009
 

geposted Mon 20 Jul 20 @ 4:19 pm
Why not?

action deck 1 ? os2l_button 'blackout' : nothing

action deck 2 ? os2l_button 'strobe' : nothing
 

geposted Mon 20 Jul 20 @ 4:21 pm
twagaPRO InfinityMember since 2009
Can we write multiline VDJscript as Action like this?
 

geposted 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
 

geposted Tue 21 Jul 20 @ 1:49 pm
twagaPRO InfinityMember since 2009
I've just confirmed that this VDJscript below works well.

action_deck 1 ? os2l_button "Red" : os2l_button "Green"
 

geposted Tue 21 Jul 20 @ 1:52 pm
skyzo76PRO InfinityMember since 2016
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...
 

geposted Thu 10 Dec 20 @ 4:19 pm
locoDogPRO InfinityModeratorMember since 2013
if I understand, you want
Pad 1 name: `cue_name 1`
 

geposted Thu 10 Dec 20 @ 4:32 pm
NicotuxHome userMember since 2014
or if you wanna have different alternative (name, number, position) depending on cueDisplay setting :
Pad 1 map Name to : `cue_display 1`
 

geposted Thu 10 Dec 20 @ 5:13 pm
skyzo76PRO InfinityMember since 2016
locodog wrote :
if I understand, you want
Pad 1 name: `cue_name 1`

exactly
 

geposted Thu 10 Dec 20 @ 6:36 pm
skyzo76PRO InfinityMember since 2016
skyzo76 wrote :
locodog wrote :
if I understand, you want
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
 

geposted Thu 10 Dec 20 @ 6:52 pm
locoDogPRO InfinityModeratorMember since 2013
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.
 

geposted Thu 10 Dec 20 @ 8:08 pm
MDJ2513Home userMember since 2019
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%.
 

geposted Fri 11 Dec 20 @ 2:59 pm
locoDogPRO InfinityModeratorMember since 2013
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.
 

geposted Fri 11 Dec 20 @ 4:36 pm
MDJ2513Home userMember since 2019
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.

 

geposted Sat 12 Dec 20 @ 2:34 am
skyzo76PRO InfinityMember since 2016
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.

ok I undestand finally ...super clrear thanks again locodog ;)
 

geposted Sat 12 Dec 20 @ 2:32 pm
skyzo76PRO InfinityMember since 2016
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 ? ;)
 

geposted Sat 12 Dec 20 @ 5:38 pm
locoDogPRO InfinityModeratorMember since 2013
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"`
 

geposted Sat 12 Dec 20 @ 5:45 pm
locoDogPRO InfinityModeratorMember since 2013
 

geposted Sat 12 Dec 20 @ 9:10 pm
skyzo76PRO InfinityMember since 2016
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"`

cool i get it :;) ty (again)

 

geposted Sat 12 Dec 20 @ 10:22 pm
17%