快速登录:  

Forum: General Discussion

话题: Script School - Page: 27
mg_1978PRO InfinityMember since 2008
Hi! Why not yet add by VirtualDj team scripts about see in a monitor sample time remaining or sample time elapsed, when a sample is playing? i can see only with script sampler_position a sort of “time passage” when a sample is playing :( is there another solution??
thanks
 

发表时间 Tue 20 Sep 22 @ 8:29 am
szemekPRO InfinityMember since 2019
Is it possible to select a deck by using value of variable?

What I want to do is to select "previous" deck. Here's a naive version
get_deck 1 ? deck 4 select : get_deck 2 ? deck 1 select : get_deck 3 ? deck 2 select : deck 3 select
 

发表时间 Tue 20 Sep 22 @ 4:28 pm
Hi, I'll try here.
In the variable I have the text (name of the effect)
set_var 'DeckColorSelect' "Echo"

How do I change the colorfx effect with this variable?
filter_selectcolorfx '`get_text "ColorFXSelect"`'

doesn't work.

It is very impractical to do that
var_equal 'ColorFXSelect' '`get_text "Cut"`' ?
filter_selectcolorfx "Cut" :
var_equal 'ColorFXSelect' `get_text "Echo"` ?
.......
 

发表时间 Thu 22 Sep 22 @ 8:24 am
Mirda Draxal wrote :
Hi, I'll try here.
In the variable I have the text (name of the effect)
set_var 'DeckColorSelect' "Echo"

How do I change the colorfx effect with this variable?
filter_selectcolorfx '`get_text "ColorFXSelect"`'

doesn't work.

It is very impractical to do that
var_equal 'ColorFXSelect' '`get_text "Cut"`' ?
filter_selectcolorfx "Cut" :
var_equal 'ColorFXSelect' `get_text "Echo"` ?
.......


Someone in the FB group answered it

In one combined script for testing:
set_var 'DeckColorFX' "Echo" & param_cast 'DeckColorFX' & filter_selectcolorfx
 

发表时间 Thu 22 Sep 22 @ 9:24 am
set_var 'DeckColorFX' "Echo" & 
param_cast 'DeckColorFX' & filter_selectcolorfx

Thanks, it works.
I didn't notice on FB
 

发表时间 Thu 22 Sep 22 @ 6:11 pm
Hi,
I think there is an error when loading the name of the ColorFX effect when setting Filter (it loads as Filter). Please try the following script
filter_selectcolorfx "Filter" &
set 'ColorFXSelect' `filter_label "name"` &
var_list & wait 1000ms &
filter_selectcolorfx "Cut" &
wait 1000ms &
set 'ColorFXSelect' 'ColorFXSelect' &
param_cast 'ColorFXSelect' & filter_selectcolorfx
 

发表时间 Sun 25 Sep 22 @ 7:29 pm
mg_1978PRO InfinityMember since 2008
hi, i use Sidelist like a Sequencer…and in my Sidelist i have “Sequencer” samples, but any time i open VirtualDj my Sidelist is empty..so when i use a mapped specific play button in my Pioneer DDJ-RZX….i don’t have samples. I would load a “Sequencer” playlist (i have saved my sidelist like a playlist, and it’s name is “Sequencer”) at first play:
Sequencer Play button: browser_window ‘sidelist’ & file_count ‘sideview’ & param_equal 0 ? browser_gotofolder ‘Playlist’ & browser_scroll +1 & get_filename & param_contains ‘Sequencer’ ? sidelist_load & play : browser_scroll +1 : play

but doesn’t work correctly :( can you help me???
 

发表时间 Sat 01 Oct 22 @ 3:05 pm
mg_1978PRO InfinityMember since 2008
mg_1978 wrote :
hi, i use Sidelist like a Sequencer…and in my Sidelist i have “Sequencer” samples, but any time i open VirtualDj my Sidelist is empty..so when i use a mapped specific play button in my Pioneer DDJ-RZX….i don’t have samples. I would load a “Sequencer” playlist (i have saved my sidelist like a playlist, and it’s name is “Sequencer”) at first play:
Sequencer Play button: browser_window ‘sidelist’ & file_count ‘sideview’ & param_equal 0 ? browser_gotofolder ‘Playlist’ & browser_scroll +1 & get_filename & param_contains ‘Sequencer’ ? sidelist_load & play : browser_scroll +1 : play

but doesn’t work correctly :( can you help me???


solved: for help everyone:
browser_gotofolder ‘Playlist\Sequencer’ & sidelist_load & play
work! i thinked that browser_gotofolder was only for folders, is for file (Sequencer is a file Sequencer.m3u) directly too 👍

 

发表时间 Mon 03 Oct 22 @ 9:45 am
Mirda Draxal wrote :
Hi,
I think there is an error when loading the name of the ColorFX effect when setting Filter (it loads as Filter). Please try the following script
filter_selectcolorfx "Filter" &
set 'ColorFXSelect' `filter_label "name"` &
var_list & wait 1000ms &
filter_selectcolorfx "Cut" &
wait 1000ms &
set 'ColorFXSelect' 'ColorFXSelect' &
param_cast 'ColorFXSelect' & filter_selectcolorfx


Solved. It is better to ask for the current name of the colorfx effect
set 'ColorFXSelect' `filter_selectcolorfx`

This will return the correct name "FILTER"
I still don't understand why when I select the FILTER effect appears as the colorfx name FILTR.



 

发表时间 Tue 04 Oct 22 @ 5:08 pm
AdionPRO InfinityCTOMember since 2006
Perhaps a bug in the language file you use?
 

发表时间 Tue 04 Oct 22 @ 5:17 pm
I want to setup the stems padpage to match seratoDJ stem pad setup...
 

发表时间 Wed 05 Oct 22 @ 7:53 am
Adion wrote :
Perhaps a bug in the language file you use?

You're right!!
Translation error.

 

发表时间 Wed 05 Oct 22 @ 7:17 pm
Hi.
How to select a deck using a variable?
This script is broken.
set  'a' 1 &
deck 'a' &
(deck action)
 

发表时间 Wed 05 Oct 22 @ 7:42 pm
locoDogPRO InfinityModeratorMember since 2013
That never worked so it can't be called broken. query the var against a value, if true select the deck in long form.

could select accept a param? [it doesn't] syntactically it could, but most cases a bracketed query is a fine solution.
 

发表时间 Wed 05 Oct 22 @ 8:49 pm
mg_1978PRO InfinityMember since 2008
hi at all! i would map a button that pushed “holding” 700ms set ‘variable’ 1 while_pressed, not holding make action1:
button= holding 700ms : set ‘variable’ 1 : var ‘variable’ 1 ? set ‘variable’ 0 : action1

but doesn’t work correctly :(
could you help me? thanks
 

发表时间 Thu 06 Oct 22 @ 6:05 am
locoDogPRO InfinityModeratorMember since 2013
holding & while_pressed don't work well in the same script and is best avoided
 

发表时间 Thu 06 Oct 22 @ 6:09 am
mg_1978PRO InfinityMember since 2008
locodog wrote :
holding & while_pressed don't work well in the same script and is best avoided


what do you advise to me to make this button 2 different actions with “holding” and only “click”?

 

发表时间 Thu 06 Oct 22 @ 8:11 am
locoDogPRO InfinityModeratorMember since 2013
holding 300ms ? action if held : action if pressed
 

发表时间 Thu 06 Oct 22 @ 8:17 am
mg_1978PRO InfinityMember since 2008
locodog wrote :
holding 300ms ? action if held : action if pressed


in script? thanks!!
i don’t know held or pressed in “script”

 

发表时间 Thu 06 Oct 22 @ 8:58 am
locoDogPRO InfinityModeratorMember since 2013
if held or if pressed aren't actual script, just descriptive for the outcomes for a holding ? query
 

发表时间 Thu 06 Oct 22 @ 9:06 am
60%