Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 29.55
sofitLE userMember since 2008
Hi Locodog. Thanks for the answer. But the backlight still does not work, as I want. Can you elaborate on the following questions. 1 When you press the pad, the pad flashes, when you press the pad again, the pad shines dimly? action? Blink 500ms Color shine bright : color 0.66. 2 On a certain action, the pad shows a beat on through the slicer, brightly illuminated, and then dimly glows until the next beat for that slicer's pad? action? Slicer 1? Color shines brightly : color 0.66. 3 When you press the pad, the pad shines brightly, when you press the pad a second time, the pad shines dimly: Action ? Color shines brightly : color 0.66. I can not. The pad lights up when the slicer is just running with no action conditions in front of it. And when pressed again, the pad with a slicer does not go out until the pad with another slicer is pressed. The rest of the pads, with an action condition, do not blink or glow on controllers with single-color pads. On controllers with rgb everything works. How so? Or pads of one color do not have a dull color and can only turn on brightly and turn off? Checked on pioneer sb3 (single color) and numark ns6II (rgb). Maybe there are options to make the pads glow the way I want? Thanks for answers.
 

geposted Mon 17 Oct 22 @ 9:25 am
djkrysrPRO InfinityMember since 2010
locodog wrote :
the minus sign was a purposeful error for you to figure out how to subtract with param_add


Hi Locodog, I clocked the '-1' & tried it both with & without the minus sign in case I didn't appreciate the value we were manipulating, then afterwards wondered if that was how you now subtracted, since your original post had explanations for subtract & divide that are way beyond my understanding of math.

Can similar now be done for 'divide' operations, i.e 'param_multiply 0.5' = divide/2 etc ?
I will try to write something to check this out myself but thought I'd ask.

Thanks anyway
 

geposted Mon 17 Oct 22 @ 11:42 am
locoDogPRO InfinityModeratorMember since 2013
@djkrysr yep * 0.5 is how to / 2
param_1_x also comes in handy
 

geposted Mon 17 Oct 22 @ 12:43 pm
djkrysrPRO InfinityMember since 2010
locodog wrote :
@djkrysr yep * 0.5 is how to / 2
param_1_x also comes in handy


Excellent thanks for that info will be a massive help.

 

geposted Mon 17 Oct 22 @ 12:47 pm
mg_1978PRO InfinityMember since 2008
hi, i have this problem: my sidelist is made by samples, but if i map a button: sampler_edit
i don’t open sampler editor about sample focused in sidelist..i open sampler editor about first sample in the selected sampler_bank
I would like to solve with this mapping:
button: set ‘edit’ `get_filepath` & set ‘samplename’ `get_browsed_title’ & get_var ‘edit’ & param_cast & browser_gotofolder & browser_window ‘songs’ & browser_scroll ‘top’ & repeat_start ‘go’ & get_browsed_title & param_equal ‘samplename’ ? sampler_edit & repeat_stop ‘go’ : browser_scroll + 1

but don’t work :( csn you help me?
 

geposted Wed 19 Oct 22 @ 10:33 pm
locoDogPRO InfinityModeratorMember since 2013
param_equal there is checking against the literal string 'samplename', it needs backticks and get_var
there is almost nothing [only 1 case I can think of] you can actually do with a var by just name alone
 

geposted Wed 19 Oct 22 @ 10:49 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
param_equal there is checking against the literal string 'samplename', it needs backticks and get_var
there is almost nothing [only 1 case I can think of] you can actually do with a var by just name alone


could i convert ‘samplename’ and get_browsed_title in 2 parameter ‘text’ and compare they (with param_equal)?

 

geposted Thu 20 Oct 22 @ 4:06 pm
locoDogPRO InfinityModeratorMember since 2013
@mg_1978 I'm not going to spoon feed you on this one, break it down into the simplest problem you can, then try solve that.

you want to compare a string variable to a string, and you do use param_equal
 

geposted Thu 20 Oct 22 @ 7:01 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
param_equal there is checking against the literal string 'samplename', it needs backticks and get_var
there is almost nothing [only 1 case I can think of] you can actually do with a var by just name alone


i have quite know solution:
button: set ‘$samplename’ `get_browsed_title’ & browser_gotofolder ‘Sampler/Recordings’ & browser_window ‘songs’ & browser_scroll ‘top’ è repeat_start 20ms param_equal `get_browsed_title` `get_var ‘$samplename’` ? repeat_stop ‘scorri’ &sampler_edit : browser_scroll +1

not always work well, could you help me?


 

geposted Thu 20 Oct 22 @ 10:46 pm
mg_1978PRO InfinityMember since 2008

 

geposted Fri 21 Oct 22 @ 5:12 am
I want to script a button to open skin_panel scratchmixer when i have skin_panel audiomixer open (or video)
I can get a button to toggle:

skin_panel 'scratchmixer' ? skin_panel 'audiomixer' : skin_panel 'scratchmixer'

But how should the script look like if i want it to work only while_pressed?

I have try:
skin_panel 'scratchmixer' while_pressed ? skin_panel 'audiomixer' : skin_panel 'scratchmixer'
skin_panel 'scratchmixer' ? skin_panel 'audiomixer' : skin_panel 'scratchmixer' while_pressed
 

geposted Fri 21 Oct 22 @ 3:11 pm
down ? skin_panel 'audiomixer' : skin_panel 'scratchmixer'

 

geposted Fri 21 Oct 22 @ 4:02 pm
locoDogPRO InfinityModeratorMember since 2013
@Denny thanks for jumping in :)

@sofit can you break it down some, I have to admit; I see a wall of text and I'm reluctant to read.
 

geposted Fri 21 Oct 22 @ 4:10 pm
Thanks!!
But what is the difference between down and while_pressed and when do you use down instead of while_pressed?
 

geposted Fri 21 Oct 22 @ 6:03 pm
locoDogPRO InfinityModeratorMember since 2013
down is the same as while pressed, except down also has a not down part to the query
 

geposted Fri 21 Oct 22 @ 7:22 pm
Ahhh. Thanks!
 

geposted Fri 21 Oct 22 @ 8:44 pm
mg_1978PRO InfinityMember since 2008
mg_1978 wrote :
locodog wrote :
param_equal there is checking against the literal string 'samplename', it needs backticks and get_var
there is almost nothing [only 1 case I can think of] you can actually do with a var by just name alone


i have quite know solution:
button: set ‘$samplename’ `get_browsed_title’ & browser_gotofolder ‘Sampler/Recordings’ & browser_window ‘songs’ & browser_scroll ‘top’ è repeat_start 20ms param_equal `get_browsed_title` `get_var ‘$samplename’` ? repeat_stop ‘scorri’ &sampler_edit : browser_scroll +1

not always work well, could you help me?


Eureka....solution is: browser_window 'songs' & browser_scroll 'top' & browser_window 'sidelist' & set ‘$samplename’ `get_browsed_title’ & browser_gotofolder ‘Sampler/Recordings’ & browser_window ‘songs’ & repeat_start 20ms param_equal `get_browsed_title` `get_var ‘$samplename’` ? repeat_stop ‘scorri’ &sampler_edit : browser_scroll +1

error is that browser_scroll 'top' it must be at beginning script (no inside script)

 

geposted Fri 21 Oct 22 @ 9:29 pm
Scripting Help - pad_pushed script not specific to the pad number ?
i want to have any pad push change the color of the led jog , in the script below i have pad 1 set to do so , but i wasn't sure if there was a good way to go about doing this for all 8 pads.
Here is the script I have set on my led jog , i like feedback and colors...

not loaded ? color white : touchwheel_touch ? blink 0.25bt ? color red : color blue : pad_pushed 1 ? blink 0.5bt ? color white : color green : automix ? masterdeck? color green : color blue : leftdeck ? color magenta : rightdeck ? color cyan
 

geposted Mon 07 Nov 22 @ 6:37 am
locoDogPRO InfinityModeratorMember since 2013
A couple of ways, just chaining the queries is probably simplest

not loaded ? color white : touchwheel_touch ? blink 0.25bt ? color red : color blue : pad_pushed 1 ? blink 0.5bt ? color white : color green : pad_pushed 2 ? blink 0.5bt ? color white : color green : pad_pushed 3 ? blink 0.5bt ? color white : color green : pad_pushed 4 ? blink 0.5bt ? color white : color green : pad_pushed 5 ? blink 0.5bt ? color white : color green : pad_pushed 6 ? blink 0.5bt ? color white : color green : pad_pushed 7 ? blink 0.5bt ? color white : color green : pad_pushed 8 ? blink 0.5bt ? color white : color green : automix ? masterdeck? color green : color blue : leftdeck ? color magenta : rightdeck ? color cyan
 

geposted Mon 07 Nov 22 @ 11:16 am
locodog wrote :
looked ok, try this thinned down version

repeat_start 'colorTracks' ? on & repeat_stop 'colorTracks' : off & browser_window "songs" & browser_scroll "top" & repeat_start 'colorTracks' 100ms & ( get_browsed_song 'harmonic' & param_cast 'text' & 
param_equal '01A' ? browsed_song color '#70ECD4' :
param_equal '01B' ? browsed_song color '#00EDC9' :
param_equal '02A' ? browsed_song color '#92F0A4' :
param_equal '02B' ? browsed_song color '#27EC82' :
param_equal '03A' ? browsed_song color '#B1EE86' :
param_equal '03B' ? browsed_song color '#85ED4E' :
param_equal '04A' ? browsed_song color '#E6E0A2' :
param_equal '04B' ? browsed_song color '#E0C86E' :
param_equal '05A' ? browsed_song color '#FEC8AC' :
param_equal '05B' ? browsed_song color '#FFA279' :
param_equal '06A' ? browsed_song color '#FFB3BF' :
param_equal '06B' ? browsed_song color '#FF8C93' :
param_equal '07A' ? browsed_song color '#FFB4D2' :
param_equal '07B' ? browsed_song color '#FF85B4' :
param_equal '08A' ? browsed_song color '#EBB7F9' :
param_equal '08B' ? browsed_song color '#F087D9' :
param_equal '09A' ? browsed_song color '#E7B6F8' :
param_equal '09B' ? browsed_song color '#CE93FF' :
param_equal '10A' ? browsed_song color '#C0CEFB' :
param_equal '10B' ? browsed_song color '#A1B9FF' :
param_equal '11A' ? browsed_song color '#94E5F8' :
param_equal '11B' ? browsed_song color '#3ED2F8' :
param_equal '12A' ? browsed_song color '#50EBF0' :
param_equal '12B' ? browsed_song color '#01EDED' : )
& browser_scroll 'bottom' ? repeat_stop 'colorTracks' : browser_scroll +1


I really like this script.
Just wondering could it be possible to make files matching the master deck in BPM, Key and Grouping start blinking?

 

geposted Mon 07 Nov 22 @ 2:22 pm
64%