快速登录:  

Forum: General Discussion

话题: Script School - Page: 24.35
hi Is it possible to activate the B-JUMP function with the MOVE button
When I work with Virtual DJ 8
Together with the S4 MK3 controller?
 

发表时间 Mon 07 Mar 22 @ 5:15 pm
Hey guys, Awesome resources here. I know the very basics of scripting, but i can't figure out how to toggle a specific effect over a period of beats. The main thing I am trying to do is have an effect or video effect toggle every 16 beats. So basically if I enable the script the specified effect will toggle on & off every 16 beats. I'm mainly trying to do negative effect on the master deck. Any advice would be greatly appreciated.
 

发表时间 Mon 07 Mar 22 @ 7:23 pm
locoDogPRO InfinityModeratorMember since 2013
@jason.a.prince

timed and freehand start
deck master repeat_start_instant negToggle ? on & repeat_stop negToggle : off & repeat_start_instant negToggle 16bt & effect_active negative -1

driven by masterdeck beat position
deck master repeat_start_instant 'negtoggle' ? on & deck master repeat_stop 'negtoggle' & effect_active 'negative' off : repeat_start_instant 'negtoggle' 30ms -1 & param_bigger `deck master get_beat_bar 32` 0.5 ? effect_active 'negative' off : effect_active 'negative' on
 

发表时间 Mon 07 Mar 22 @ 11:43 pm
Is it possible to switch of the Logo (Pro Infinity) by script while a Karaoke flagged track is playing and let it return when the Karaoke track ended?

I plan to put a QR code to my request website as the logo.
As i have karaoke video's with the lyrics at different heights the logo/QR code is over the lyrics.
 

发表时间 Tue 08 Mar 22 @ 10:31 pm
LOCODOG, You my friend are a legend. Thank you so much.
 

发表时间 Wed 16 Mar 22 @ 11:31 am
What about a script that randomly toggles a specific effect but with a slider to choose how often. E.G Have blur random toggle on master video, but only comes on for a second or two every so many beats or seconds?
 

发表时间 Wed 16 Mar 22 @ 11:41 am
locoDogPRO InfinityModeratorMember since 2013
more suited to a virtualfx.
 

发表时间 Wed 16 Mar 22 @ 12:39 pm
SveninoPRO InfinityMember since 2009
For some action-cues:
How can I query the deck in which the song is loaded?
(just don´t know the syntax)
Thanks for help
 

发表时间 Thu 17 Mar 22 @ 7:39 pm
locoDogPRO InfinityModeratorMember since 2013
get_deck returns a number,
action_deck can be queried against a number [or side]
 

发表时间 Thu 17 Mar 22 @ 7:48 pm
SveninoPRO InfinityMember since 2009
If I want to automatically jump from cue2 to cue3, but only when the song is loaded in deck 1?

the following line doesn´t make it:
set "$DELO" get_deck & var "$DELO" 1 ? goto_cue 3 : nothing
 

发表时间 Thu 17 Mar 22 @ 8:08 pm
locoDogPRO InfinityModeratorMember since 2013
missed the backticks to set the var to a script value
set "$DELO" `get_deck` & var "$DELO" 1 ? goto_cue 3 : nothing

variables probably isn't the best way, a direct query of get_deck needs no cleaning up

param_equal get_deck 1 ? goto_cue 3 : nothing
 

发表时间 Thu 17 Mar 22 @ 8:29 pm
SveninoPRO InfinityMember since 2009
That's it! Thanks for the quick answer.
 

发表时间 Thu 17 Mar 22 @ 9:10 pm
I have some problem with a script.
I have a button scripted with a cut effect. On top the cut effect i want a reverb.
The button works but sometime the reverb is before the cut and not after.
How can i prevent that?

effect_active "cut" ON while_pressed & effect_beats "cut" 0.5bt & effect_slider "cut" 1 70% & effect_active "reverb" ON while_pressed
 

发表时间 Sat 26 Mar 22 @ 10:06 am
locoDogPRO InfinityModeratorMember since 2013
I think you're getting the bug when pressing fast and also have trailing stop on the reverb effect, turn trailing off as a part of your script, that should solve it

effect_button 'reverb' 2 0 & effect_active "cut" ON while_pressed & effect_beats "cut" 0.5bt & effect_slider "cut" 1 70% & effect_active "reverb" ON while_pressed
 

发表时间 Sat 26 Mar 22 @ 10:58 am
Thanks! Works great.
 

发表时间 Sat 26 Mar 22 @ 1:45 pm
More script questions (trying to learn but its hard):

Klausmogensen script "Noice effect as a sweep". I want it to work only when the button is pressed.
I have change it and it works and the effect stops when i release the button, but the sweep is continues in the background. Cant figure out how to prevent it.

effect_slider 'noise' 1 20% && effect_slider 'noise' 2 20% && effect_active 'noise' 1 while_pressed && repeat_start 'wait' 300ms & effect_slider 'noise' 1 +1% & effect_slider 'noise' 2 +3% & effect_slider 'noise' 1 50% ? effect_active 'noise' 0 & repeat_stop 'wait'
 

发表时间 Sat 26 Mar 22 @ 6:42 pm
locoDogPRO InfinityModeratorMember since 2013
Probably better suited to a virtualfx if you're using a windows machine
 

发表时间 Sat 26 Mar 22 @ 8:47 pm
Yes I'm using a Mac. So you mean it is what it is?
 

发表时间 Sat 26 Mar 22 @ 9:20 pm
locoDogPRO InfinityModeratorMember since 2013
no, just needs a bit more thought and not quite as configurable.

effect_slider 'noise' 1 20% && effect_slider 'noise' 2 20% && down ? effect_active 'noise' 1 && repeat_start 'noiseSweep' 300ms & effect_slider 'noise' 1 +1% & effect_slider 'noise' 2 +3% & effect_slider 'noise' 1 50% ? effect_active 'noise' 0 & repeat_stop 'noiseSweep' : : effect_active 'noise' 0 & repeat_stop 'noiseSweep'
 

发表时间 Sat 26 Mar 22 @ 9:39 pm
You are fantastic! Thanks
 

发表时间 Sat 26 Mar 22 @ 10:50 pm
52%