Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 46.7
locoDogPRO InfinityModeratorMember since 2013
if it did work and now it doesn't report it on the technical forum.
 

geposted Thu 27 Jun 24 @ 12:53 pm
locoDog wrote :
if it did work and now it doesn't report it on the technical forum.


I was told by support to post it in here and a tech would respond. I did post it in the Technical Support Thread. One person suggested removing the deck x command but this breaks the working version and has zero effect on the current version. Its broken and I can say for sure its a BUG.
 

geposted Sun 07 Jul 24 @ 6:07 pm
locoDogPRO InfinityModeratorMember since 2013
Scroller [doing things in batch]



A scroller is a name I've given to scripts that do stuff in batches,
If you search the forum for "scroller" you'll find lots of examples, all doing different things but in the same kind of way.
I call them scrollers because it actually scrolls thru the browser.

The basis would be a repeat_start script [a.k.a. rsi, repeat_start_instant]
Some cases you might want to scroll over the entire database, some cases it might be a specific list/folder/filter so use your brain which bits you need for your thing.
I'll be making an example to do an entire database

search "*" & wait 2000ms & browser_window songs & browser_scroll top & 


By using *, I'm search for everything, give it a second or two to get the results, put the browser focus onto the song list, and go to the top of the list, this is easy stuff.

& repeat_start_instant scroller 25ms -1 & 


a repeat script called "scroller" that repeats every 25ms & has no numbered limit [-1 means it will run until it is told to stop]

next you do what you need to do, some times you might need to load the track, like if you need to do cue stuff
load & do stuff with cues & 

or sometimes you don't need to load like maybe write a tag
& browsed_song comment "EXAMPLE" & 

or read a tag and do something about it
& ( get_browsed_bpm & param_bigger 155 ? color 'red' : color 'green' ) &


ok that's one case of doing the thing you need, how do we get it scrolling?

& browser_scroll 'bottom' ? repeat_stop scroller : browser_scroll +1 


not a lot to it at all, we end our script with a query have we hit the bottom because if we have we can stop the repeating script, and if we haven't we can browser_scroll down and let the repeat script run again.

whole custom_button script, harmless example counts if a track is > 100 bpm or not, also has button logic so a press while it is running will make the repeating stop

repeat_start_instant scroller ? blink 250ms & repeat_stop scroller & var_list : off & set $counterOver100 0 & set $counterNotOver100 0 & search "*" & wait 2000ms & browser_window songs & browser_scroll top & repeat_start_instant scroller 25ms -1 & ( get_browsed_bpm & param_bigger 100 ? set $counterOver100 +1 : set $counterNotOver100 +1 ) & browser_scroll 'bottom' ? repeat_stop scroller & var_list : browser_scroll +1 


rsi speeds, it will take a little while to do a database, it processes about 1800 tracks a minute, it can be made considerably quicker depending on how simple the thing you are doing is.
 

geposted Thu 12 Sep 24 @ 12:03 pm
djkrysrPRO InfinityMember since 2010
I use samples a lot so I have created a floating window I can fix on a second touchscreen monitor with 64 sample buttons on it for quick access.
For each sample button I have added an icon to indicate if the sample loops but I would also like to be able to add an icon to indicate if the sample is video or not.

I have tried is_video, but this understandably doesn't seem work with samples so I thought maybe I could make sure all video samples were in groups that had the text 'Video' in it and query that, however it appears the verb 'sampler_group_name' returns a list of the groups, not the group a selected sample is in, i.e. 'sampler_group_name 2' will return the name of the second group on that particular sample bank, not the group name of the second sample in the bank, so that's a bust.

At the moment, due to the way my controller is configured I always have a video sample loaded on sample slot 5 so I am using
"param_equal `sampler_color [BUTTON]` `sampler_color 5` ? true : false"
to see if the colors match regardless of what color the video group is on a particular bank, but that is a bit of a fudge.

Is there a way to query if a sample is video, or a way to get a specific samples group name, or failing that, a better fudge I haven't thought of that could give me the result I want.

Any help or pointers would be greatly appreciated.
 

geposted Sun 15 Sep 24 @ 1:48 pm
locoDogPRO InfinityModeratorMember since 2013
I can't think of anything yet other than making the first char of the sample name something you could query, like using a "+" or something.
 

geposted Sun 15 Sep 24 @ 9:20 pm
djkrysrPRO InfinityMember since 2010
I did consider a special character in the sample name but since the name is displayed on the button anyway it seemed a bit redundant, altho I might revisit that thought.

Thanks for your consideration anyway, if you can't think of a better way to do it at least I know it can't be done and to stop trying.

 

geposted Mon 16 Sep 24 @ 12:22 pm
Dear colleagues,
I ask for your help in writing a script to control the flashing of the button. I have studied the Freestyler program and am now assigning controls to buttons in Launchpad. I ran into a problem: I can't make the button blink dimly when the function is not active, and brightly when the function is on. I would appreciate any help or advice on this issue.

the function on the button is written as follows:
var_equal '$FS_RCV_$FS_SND_OVER_01' 0 ? off & set '$FS_SND_OVER_01' 1 while_pressed : on & set '$FS_SND_OVER_01' 1 while_pressed

I wrote it like this: var_equal '$FS_RCV_$FS_SND_OVER_01' 0 ? blink 500ms ? color 'white' : off : color 'dark white

In this case, the button always blinks dimly, when I press and release the button, the function turns on, the button blinks dimly, I press it again - the function turns off, the button blinks dimly, but if you press and hold the button, it blinks brightly.

 

geposted Mon 16 Sep 24 @ 5:34 pm
ChaksiPRO InfinityMember since 2011
What is wrong with this Script? It does what i want it to do, i.e toggle the loopchop effect on and off and give me LED Feedback but the only problem is that the LED is on by default and the effect is activated when the LED is off and the opposite when its on. Almost like i have to push the button to arm it before pressing again to get the desired feature. Any Help will be much appreciated,Thanks

var 'voiceThing' 0 ?
on & toggle 'voiceThing' & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : off & toggle 'voiceThing' & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`
var 'effectActive' 0 ?
on & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : off & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`
 

geposted Wed 18 Sep 24 @ 4:09 pm
locoDogPRO InfinityModeratorMember since 2013
invert where you call led on/off
 

geposted Wed 18 Sep 24 @ 4:27 pm
ChaksiPRO InfinityMember since 2011
sorry but I am very green with VDJ scripts. I can’t find the “led toggles” in the script I uploaded . Thanks for your help as always 🙏🏾

 

geposted Thu 19 Sep 24 @ 2:44 am
locoDogPRO InfinityModeratorMember since 2013
var 'voiceThing' 0 ?
off & toggle 'voiceThing' & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : on & toggle 'voiceThing' & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`
var 'effectActive' 0 ?
off & set 'VoxFXcount' `var 'VoxFXcount' ? get_var "VoxFXcount" & param_add 1 : get_text '1' & param_cast val` & set 'voxLoopCycle' 0 & effect_stems 'vocal' on & repeat_stop 'voxRoller2' & quantize_loop on & padfx 'loop roll' 0.9 0.75 & wait 1bt 1 & repeat_start 'voxRoller' 1bt & effect_slider 'loop roll' 2 -20% & cycle 'voxLoopCounter' 2 & var 'voxLoopCounter' 0 ? repeat_stop 'voxRoller' & repeat_start 'voxRoller2' 1bt & effect_slider 'loop roll' 1 -15% & cycle 'voxLoopCycle' 6 & var 'voxLoopCycle' 0 ? repeat_stop 'voxRoller2' : nothing : nothing : on & repeat_stop 'voxRoller2' & effect_active 'loop roll' off & get_var "VoxFXcount" & param_equal 1 ? effect_stems 'vocal' off & set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1` : set 'VoxFXcount' `get_var "VoxFXcount" & param_add -1`


I'm not going to bother trying to figure out what it is supposed to be doing,
If you see "on" or "off" on their own in a script then that's for LED logic
 

geposted Thu 19 Sep 24 @ 3:24 am
ChaksiPRO InfinityMember since 2011
Thanks Locodog... Much Appreciated

 

geposted Thu 19 Sep 24 @ 1:36 pm
locoDogPRO InfinityModeratorMember since 2013
@djkrysr new in EA build 8322

get_sample_info X type

X being sample slot number
 

geposted Wed 25 Sep 24 @ 1:10 am
djkrysrPRO InfinityMember since 2010
Great, thanks for letting me know this addition to the script, I will get straight on it.

 

geposted Wed 25 Sep 24 @ 10:18 am
djkrysrPRO InfinityMember since 2010
Tested the `get_sample_info` addition and it all works perfectly thanks.

Another thing I can' seem to work out is how to tell videos apart from karaoke tracks as they both return true with 'is_video', are you aware of a way to distinguish between the two formats using script as obviously VDJ can.

Thanks anyway
 

geposted Sat 05 Oct 24 @ 2:01 pm
agadj2PRO InfinityMember since 2021
Hi friends.
I´m triying program a custom button in each deck. who gets the loaded song and add it to a specific virtual folder.
I triyed lots of combinations but almost times the track added is from browser selection. and i would it be from each deck the track is playing or simply loaded on it.

 get_text "`get_loaded_song 'drive'`:`get_loaded_song 'filepath'`" & param_cast 'text' & browser_gotofolder & add_to_list  "R.B.K/OCTUBRE"  & get_filename


get_text `get_loaded_song 'drive'`:`get_loaded_song 'filepath'`" & Add_to_list 'text' 


search " `get_text "`get_loaded_song 'title`:`get_loaded_song 'artist'` " & param_cast 'text'  & add_to_list  "GUIYEYDJ/SEPT"


i´ve triyed it by different ways but noone giveme succes.
thanks for any support.
regards


 

geposted Wed 09 Oct 24 @ 3:10 pm
agadj2PRO InfinityMember since 2021
Hi solved i got it....
I find the answer and almost script did it in a pad from @locodog it was rate n color and give me the way to get success...
If some one would use it i left here the script. is for use in custom buttom from player (not buttons in browser)

get_title_remix & param_cast & search & repeat_start 'rsCTFD' 250ms 1 & add_to_list   "YOUR VIRTUAL FOLDER/YOURVIRTUALSUBFOLDER" 


VIRTUALFOLDERSnow are calling "local list" so i`m not update it in my brain.

Maybe works finest if use get_tittle_artist instead get_tittle_remix, if you do it will be appreciate any comment about.

Hope it will be useful for someone.


Regards!!!
 

geposted Fri 11 Oct 24 @ 6:13 pm
Hi

I'm trying to map the left and right EQ_HI controls on a z2 to make it 4 deck compatible.
both left and right high EQ appear to activate the same midi control script. This is not a problem when it is calling eq_high (as it can determine whether it is left or right), however when I specify deck left eq_high, which swaps between A & C , the right high EQ knob also only works on the Deck A & C. eq_high on its own can determine the context somehow.
1) how is it context sensitve when the mapper appears to indicate it calls the same script.
2) how can I correct my code to allow the left high EQ to call deck left eq_high and the right EQ knob to call deck right eq_high ?

Thanks
 

geposted Fri 11 Oct 24 @ 9:20 pm
agadj2PRO InfinityMember since 2021
In 4 decks controllers you have a button to select between 1-3 decks or 2-4
need one button for make change in each deck

Like
toggle "$deck13"
and other like
toggle "$deck24"

in your knob have to question this variable
eq_high left

var_equal "$deck13" 0 ? deck 1 eq_high : deck 3 eq_high

in eq_hi for right ....
var_equal "$deck24" 0 ? deck 2 eq_high : deck 4 eq_high

hope be useful.
good luck and comment if was useful .
bye
 

geposted Fri 11 Oct 24 @ 11:25 pm
mg_1978PRO InfinityMember since 2008
Hi…
wich is different about new script “sampler_rec_delete” and existing script “browser_remove”?
thanks
 

geposted Fri 18 Oct 24 @ 9:36 am
95%