快速登录:  

Forum: General Discussion

话题: Script School - Page: 21.7

由于该帖子的部分内容已年深日久,可能包含陈旧过时或描述错误的信息。

I am trying to figure out how to program a pad button that will create an Action cue at the current song position and then write specific text to the Macro action field of that Action cue.

Any and all suggestions and help are appreciated.

FYI: I do know basic VDJ script.

Thank you

 

发表时间 Mon 15 Nov 21 @ 5:58 pm
locoDogPRO InfinityModeratorMember since 2013
@DJ Riot Grrrl, I've got the thing for you. Needs a plugin to add action scripts. And what the action is going to be is very opened

this is my working for action poi for OS2L, use subtitles, but can be tweaked to do any action

PM or chat here, on the sort of thing you want to add
 

发表时间 Mon 15 Nov 21 @ 6:29 pm
golnarPRO InfinityMember since 2016
Hey guys,

I am using the Inpulse 500 with VDJ 2021. There I have 4 FX Buttons. Two left and two right. On Click I want the left buttons to activate a certain filter on DECK 1 and the right Buttons to activate a certain filter on DECK 2. If the filter is activated it should be deactivated. I tried coding it my self. But I failed. Can some help me:

On Click:
Case 1: Filter X is not activated. Filter X gets activated.
Case 2: Filter X is activated. Filter X get deactivated.

Can you tell me how I can do this? Also I have two knobs for the filters. What is the right code for the knob to change the filter?

Thank you so much in advance!!!
 

发表时间 Fri 19 Nov 21 @ 10:35 am
locoDogPRO InfinityModeratorMember since 2013
 

发表时间 Fri 19 Nov 21 @ 12:48 pm
mg_1978PRO InfinityMember since 2008
hi. is there a script for push browser encoder that make:
browser_folder if folder have subfolders, if folder haven’t subfolders go to browser_windows ‘songs’
thanks
 

发表时间 Mon 22 Nov 21 @ 11:21 pm
locoDogPRO InfinityModeratorMember since 2013
like this
browser_open_folder & browser_open_folder ? : browser_enter
 

发表时间 Mon 22 Nov 21 @ 11:55 pm
mg_1978PRO InfinityMember since 2008
mg_1978 wrote :
hi! i have mapped an encoder that move a sample in sideview ‘sampler’ with var ‘samplermove’ 1:
encoder: browser_window ‘sampler’ ? var ‘samplermove’ 1 ? param_smaller 0 ? browser_move -1 : browser_move +1 : nothing : nothing
but, for example, if i move sample 1 to 3 position and i play with pad 3 i can’t listen new sample in position 3, but i listen old sample 3 :( is not a really moving with script ‘browser_move’?
thanks who help me


solved :) with script:
encoder: param_smaller 0 ? sampler_select & sampler_move -1 : sampler_select & sampler_move + 1

but with sampler_select is open a window..with a script can i close this window?
i would post a little video but i can’t upload here :(

 

发表时间 Tue 23 Nov 21 @ 9:40 am
locoDogPRO InfinityModeratorMember since 2013
???
sampler_move -1 isn't a script, you mean browser_move?
why call sampler_select at all?
 

发表时间 Tue 23 Nov 21 @ 10:03 am
mg_1978PRO InfinityMember since 2008
-sorry, is browser_move -1 / browser_move +1
- sampler_select yes is generic (at all) because if i script: param_smaller 0 ?sampler_select 1 & browser_move -1 : sampler_select 1 & browser_move +1
(1 is an sxample) i can move only sample in slot 1..i wont move any sample focused, but sampler_select open a popup window...can i close this popup window with a script?
 

发表时间 Tue 23 Nov 21 @ 12:43 pm
locoDogPRO InfinityModeratorMember since 2013
so don't use sampler_select.
use, browser_window 'sampler' & browser_scroll 'top' & browser_scroll +X & browser_move +1

a lot of the time that is scripting, sometimes there's knowing a nice easy concise action, most times however, you do it in steps.
 

发表时间 Wed 24 Nov 21 @ 6:37 pm
since the stock echo isnt a good echo I need a script that i can assign to a button that activates a solo vocal stem, then turns on BFX-Echo and the stock echo. The BFX-Echo should turn off after the timing set in the BFX-Echo settings with the stock echo acting as it normally does.
 

发表时间 Thu 25 Nov 21 @ 2:26 pm
locoDogPRO InfinityModeratorMember since 2013
What have you tried?
 

发表时间 Thu 25 Nov 21 @ 3:31 pm
locodog wrote :
What have you tried?
I got the echo part deck left effect echo active

 

发表时间 Thu 25 Nov 21 @ 4:54 pm
locoDogPRO InfinityModeratorMember since 2013
So tried not much. [given you just copied v7 script from your controller]

stem solo you've been shown recently [search stem in the mapping window if you can't remember], the fx(s) active you know [but v8 syntax is effect_active "Name" ] the only thing that isn't straight forward is the fx off timing by an fx setting, that will be a list of queries against the fx buttons, when true start a single repeat_start with a bt for the time parameter

....effect_button "BFX-Echo" 1 ? repeat_start 'NAME' 0.125bt 1 & TURN BFX OFF : QUERY SECOND BUTTON etc

I can't see this being what you're after bfx doesn't trail on stop, so bt being same as fx, you're just feeding the stock echo with extra steps.
 

发表时间 Thu 25 Nov 21 @ 5:44 pm
actually Im feeding the stock echoe the the echo i like which makes the bfx echo the echo trails the made by the stock echo. giving me the volume of the echoe that I need when transitioning or even with just using the echoe during the song.

 

发表时间 Thu 25 Nov 21 @ 6:02 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
like this
browser_open_folder & browser_open_folder ? : browser_enter


thanks! but isn't completely what i would, because after opened a folder with subfolder. focus is in browser_window 'songs' and not only open a folder with subfolder, bit if focus is in subfolder....yes it can move to browser_window 'songs'
 

发表时间 Thu 25 Nov 21 @ 10:12 pm
locoDogPRO InfinityModeratorMember since 2013
Not an easy script, I don't know how you get me for the money.

set '$tab' `get_browsed_folder_tab` & browser_open_folder & repeat_start 'name1' 50ms 1 & browser_scroll +1 & param_equal `get_browsed_folder_tab` `get_var '$tab'` ? browser_scroll -1 & browser_enter : param_bigger `get_browsed_folder_tab` `get_var '$tab'` ? browser_scroll -1 & browser_enter : browser_scroll -1
 

发表时间 Fri 26 Nov 21 @ 10:51 am
I used to think I was fairly intelligent until I came across vdj script. Now I feel dyslexic.... I just dont get it and whenever I try I destroy my mapping. I give you guys a lot of credit and respect cause I just dont get it.
 

发表时间 Fri 26 Nov 21 @ 5:48 pm
locoDogPRO InfinityModeratorMember since 2013
@xxx
make a make backups and give it a go, it's a language some people aren't wired for that [I'm not], consider this thread and the verb list a phrase book & dictionary, to actually learn you have to use the language. Even if it's trivial simple stuff, keep repeating it until you can't forget it. Eventually when a few concepts have burnt in the verb list stops appearing vague, it appears concise.
 

发表时间 Fri 26 Nov 21 @ 7:01 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
Not an easy script, I don't know how you get me for the money.

set '$tab' `get_browsed_folder_tab` & browser_open_folder & repeat_start 'name1' 50ms 1 & browser_scroll +1 & param_equal `get_browsed_folder_tab` `get_var '$tab'` ? browser_scroll -1 & browser_enter : param_bigger `get_browsed_folder_tab` `get_var '$tab'` ? browser_scroll -1 & browser_enter : browser_scroll -1


thanks a lot my friend...I took a idea from your script and i have now my solution!

browser_window 'folders' ? param_equal `browser_open_folder` `on` ? browser_window +1 : get_browsed_folder_tab & param_bigger 1 ? browser_window +1 : browser_open_folder 'on' : browser_window +1

 

发表时间 Fri 26 Nov 21 @ 9:35 pm
44%