快速登录:  

Forum: General Discussion

话题: Script School - Page: 25
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
locoDogPRO InfinityModeratorMember since 2013
PUBLIC BUILD 6878 (2022-03-27)

A quick run down of what's been added script wise over the past month or so, a few things that won't need much explanation and one or two that will.

In reverse chronological order
-sideview_sort, in app the script definition hasn't been added just yet [I just used browser_sort for the on site verbs page] so
sideview_sort "bpm" - toggle bpm sort of sideview ascending/descending
sideview_sort "+bpm" - bpm sort of sideview ascending
sideview_sort "-bpm" - bpm sort of sideview descending


-file_count "karaoke", file_count "sideview", file_count "automix" and file_count "files" to get file count of different lists,
more a script tweak to file_count verb than a new thing but this will be useful in a small way if you want to pull a random file from a sideview, knowing the file count is pretty vital for that type of thing, if you think of something share your thoughts. Pretty meta but good to have than have not.

-invert_controllers can be queried to get the next deck
I'm honestly not sure, I'll have a test on this and edit this bit.

-Allow ONINIT for simple midi controller.
nice to have finally if you're rocking a non defined device.

the more exciting ones
this one has been on the wish list a long time.

-cue_action added to set script of a hot cue,
place action poi instantly :)
cue_action X "SCRIPT"
any script you want, obviously it can't do scripts that action poi don't do like; up ? down ? double_click ? holding ? repeat ?
plus remember your script will be contained in a set of " or ' so you can't use every trick but for such cases there are other ways. [my autohackKey method still has uses if you're on windows]

A more complicated one now, this still has my brain itching... there's something that this next function will allow us to do, but I can't think what it is yet, but it feels like there's something important.
bear with me

-cue_ actions can also index action, loop and load points ("cue_name 1 action", "cue_name 1 loop", "cue_name 1 load" )
...um yeah had me confused,
think of this; cue 1 is a normal hotcue, cue 2 is a action poi
script hot_cue 1 will call cue 1, nothing strange there, but
script hot_cue 1 action will call the first action cue [so cue 2]

it has a use as a get type action also, say you name a pad
`cue_name 1 action`
it will get the name of the first action poi
or
`cue_action 1 action`
it will get the action of the first action poi

I can't shake the feeling that this is super useful but I'm not sure how yet, [I'll get drunk and think about it asap XD]
 

发表时间 Sun 27 Mar 22 @ 4:42 pm
I need a couple scripts. The first is to have VDJ automatically scan certain folders when started, for new or moved files.
The second one is so the only files used are in those folders. Example: My DJ library reside in a folder named TLS Library on my G: drive and in another Folder on my H: Drive named TLS_Crates. If these are the only folders I want VDJ to seek for music. Ive ignored the other drives. But I only want VDJ database to use those 2 folders.
 

发表时间 Thu 31 Mar 22 @ 8:08 pm
locoDogPRO InfinityModeratorMember since 2013
Second one sounds like a quick filter job.

Match Any condition
file path contains TLS Library
file path contains TLS_Crates

first one is more involved with a virtual folder you recurse, inside that virtual folder you make favourite folders for your watched folders.
 

发表时间 Thu 31 Mar 22 @ 11:04 pm
help fix macro:
saved_loop 16 & eq_low -80% & $deck effect_active 'reverb' & eq_low -80%

It should work like this: activate the saved cycle 16, low frequencies -80% and mid frequencies -80% and the reverb effect is enabled.

if you write: leftdeck effect_active 'reverb', then everything works, and if the track is loaded on the right deck, it does not work. how to make a script so that VDJ understands on which soundboard this track is loaded.
 

发表时间 Fri 01 Apr 22 @ 7:11 am
locoDogPRO InfinityModeratorMember since 2013
saved_loop 16 & eq_low -80% & effect_active 'reverb' & eq_low -80%
 

发表时间 Fri 01 Apr 22 @ 7:33 am
Thanks for the quick response. LOCODOG, do you think, can create a new thread in the forum "User scripts and their description" so that users can share their developed scripts. Without discussion and questions, just a script and a description - what does this script do if you register it on a certain button or slider.
 

发表时间 Fri 01 Apr 22 @ 10:20 am
locoDogPRO InfinityModeratorMember since 2013
We had a page for that but it kind of got filled with inaccurate stuff that was confusing more than helpful. so it was locked
however I can update that page still, so just post here, if it's straight forward, I'll remove the post from this thread and I'll post in to the depot

http://www.virtualdj.com/wiki/VDJScript%20Examples
 

发表时间 Fri 01 Apr 22 @ 10:42 am
You need a certain form to demonstrate your script, so that all users use the same form of description of their script.
for example , this form:

the name of the device on which the script is written is a BUTTON / SLIDER / HANDLE / JOGSHUTTLE or LED.

Description: (a detailed description of what will happen to the controllers if you activate this script).

Script text:

Decryption of the script:
----------------------------------------------------------------------------------------------------------------------

full form example:

BUTTON

Description: If you hold down the shift key on your controller and press the play button, then the track that is playing on this deck is cloned to the opposite deck.

Script text: var "$shift" ? clone_deck : play_pause

Decryption of the script: if you hold shift and press play, the track is cloned: otherwise (without holding shift) the button will work as play_pause.
-------------------------------------------------------------------
Naturally, this forum needs a good moderator, such as LOCODOG, who, even with his eyes closed, can see the flaws in the scripts.
 

发表时间 Fri 01 Apr 22 @ 1:44 pm
skyzo76PRO InfinityMember since 2016
Hello,
I have a problem with this : before I use Diy controller with script inside "device" and it separate slider volume deck 1 and slider volume deck 2.SO i use a variable that I call "bothfader" to sometimes assign some decks on 1 volume fader, ex one fader for deck 1/2 and sampler and with this variable i can switch easily between some settings...BUT now, I work with a reloop ELITE and the slider for the volume are the same assignement (midi)for deck1 or deck2 so when you want to script a specific code for the slider 1 and deck 1 (exemple) it will do it on the other slider too...because there both called volume, is there a way to separate the settings of those slider (because i do not have the .xml of the "device") i guess I must find a variable for a specific deck ???
 

发表时间 Mon 18 Apr 22 @ 10:07 am
locoDogPRO InfinityModeratorMember since 2013
action_deck X ?
or
device_side X ? for these types of cases
 

发表时间 Mon 18 Apr 22 @ 10:19 am
skyzo76PRO InfinityMember since 2016
thanks locodog for the respons! yes it works when "fake fader" are disabled but if I want to keep the fake fader eq etc..it dont work...i don't know if i am wrong but when all "fake" are able (not disable) sound is better.
 

发表时间 Mon 18 Apr 22 @ 7:28 pm
locoDogPRO InfinityModeratorMember since 2013
show me your script
 

发表时间 Mon 18 Apr 22 @ 8:18 pm
skyzo76PRO InfinityMember since 2016
hello locodog/
here is the test of my script...so on the "skin" for those code, everything works fine but have no impact on "output" so it doesn't affect the output volume but we see slider moovin on the skin..

action_deck 1 ? deck 1 volume : action_deck 2 ? deck 2 volume
OR
action_deck 1 ? var "$BothFader" 1 ? deck 1 volume & deck 2 volume : deck 1 volume : action_deck 2 ? deck 2 volume

when I add a fake mixer off , everything is good (but Im afraid to loose the "fake mixer" avantage)
action_deck 1 ? fake_mixer off & var "$BothFader" 1 ? deck 1 volume & deck 2 volume : deck 1 volume : action_deck 2 ? fake_mixer off & deck 2 volume

(I find that fake mixer off (on the ONINIT command) affect the quality of the cross fader but I didn't test it for a long time)..
 

发表时间 Sat 23 Apr 22 @ 7:47 am
53%