快速登录:  

Forum: General Discussion

话题: Script School - Page: 36.55
locoDogPRO InfinityModeratorMember since 2013
key_smooth is between 13 whole semitones -6 to +6, across a dial 0.0 to 1.0, 0.5 being the natural key

deck left key_smooth 0 ?

this won't work as a comparison, key_smooth is a little weird how it works compared this way, it only compares key_move [whole semi tones from neutral]

This would be the correct comparison for accurate natural key
deck left param_equal `key_smooth` 0.5 ?

So lets work out some numbers

1 is our key_smooth dial range, 13 keys, 20 seconds, 2 steps every a second

1 / 13 / 20 / 2
~0.001923 per step

we're dealing with small floats [that have been rounded] we get rounding errors, we might not get back to exactly 0.5, so we'll deal with that
NEUTRAL KEY + 1 STEP
0.5 + 0.001923
0.501923

NEUTRAL KEY - 1 STEP
0.5 - 0.001923
0.498077

param_smaller `key_smooth` 0.501923 ? WE ARE MORE THAN 1 STEP ABOVE NATURAL, GO DOWN :
WE ARE BELOW NATURAL param_bigger `key_smooth` 0.498077 ? WE ARE MORE THAN 1 STEP BELOW NATURAL, GO UP :
WE ARE LESS THAN 1 STEP AWAY FROM NATURAL key_smooth 0.5 & repeat_stop 'KRwait'

repeat_start 'KRwait' 500ms & param_smaller `key_smooth` 0.501923 ? key_smooth -0.001923 : param_bigger `key_smooth` 0.498077 ? key_smooth +0.001923 : key_smooth 0.5 & repeat_stop 'KRwait'

I'll invoice you later XD
 

发表时间 Sat 22 Jul 23 @ 8:06 pm
SveninoPRO InfinityMember since 2009
Thank You very much Locodoc, changed the parameters a bit so that the reseting is a bit slower, and the other deck is changing together (If 2 songs are playing in sync):

deck right repeat_start 'KRwait' 250ms & 
deck right param_smaller `key_smooth` 0.50041667 ? deck right key_smooth -0.00041667 &
deck left key_smooth -0.00041667 :
deck right param_bigger `key_smooth` 0.49958333 ? deck right key_smooth +0.00041667 &
deck left key_smooth +0.00041667 :
deck right key_smooth 0.5 & deck right repeat_stop 'KRwait'


This works fine but now a new problem arises:

Even with
repeat_stop 'KRwait'

on another button, 'KRwait' cannot be stopped. It goes on and on. Sometimes, however, I also want to change a key WITHOUT it slowly receding on its own. This is no more possible at the moment. I change the Key of deck right (and want to keep this for a longer time) and after 30 secs the key is back at the original.
What is the problem now?
 

发表时间 Sat 22 Jul 23 @ 9:42 pm
locoDogPRO InfinityModeratorMember since 2013
Don't know, I can't see what you're doing.
I'd guess that repeat_stop needs the deck specifying.
 

发表时间 Sat 22 Jul 23 @ 11:14 pm
adjnuPRO InfinityMember since 2005
I have 2 NVII W/4chs, i would like to assign controller 1 to decks 1 and 2 only and assign controller 2 to decks 3 and 4 only.
 

发表时间 Sun 23 Jul 23 @ 9:38 pm
locoDogPRO InfinityModeratorMember since 2013


see the "deck" drop down, do it there.
 

发表时间 Sun 23 Jul 23 @ 9:43 pm
Can a professional help me create a script for (2 Items);
+ When a new TRACK is LOADED, disengage BEALOCK if engaged.
+ When enabling PTCH LOCK, check if BEAT LOCK is active, if YES, Disengage BEATLOCK and Keep PITCH LOCK ACTIVE.

 

发表时间 Mon 21 Aug 23 @ 2:27 pm
locoDogPRO InfinityModeratorMember since 2013
keyboard mapping has onsongload event, so your beatlock is easy, no query needed you're just switching off

2
pitch_lock & pitch_lock ? deck all beatlock off :
 

发表时间 Mon 21 Aug 23 @ 5:02 pm
Hi,

short question. Is there a possibility to just return some information from
broadcast_message
?
I only want to display the connected clients.

Thx in advanced
 

发表时间 Thu 24 Aug 23 @ 6:23 am
locoDogPRO InfinityModeratorMember since 2013
For 2 deck Line 5932, for 4 deck line 5844
change action to
action="broadcast_message & param_cast 'text' 27"


A bit of a rough way to do it, but I don't know what params this action accepts other than "full" but this cast is good upto 999 clients.

A bit of a strange ask, is it just for clarities sake?
 

发表时间 Thu 24 Aug 23 @ 6:04 pm
Hey Locodog,

thank you for your answer. The usecase is to have a broadcast button on a controller skin that, when broadcasting, shows the number of connected clients.
The standard text is a bit long for the space of a button.

 

发表时间 Fri 25 Aug 23 @ 8:19 am
locoDogPRO InfinityModeratorMember since 2013
Ah then the above will still be too long.

you'll want something like this

broadcast_message & param_cast 'text' 27 &
param_contains " 1 " ? get_text "1" :
param_contains " 2 " ? get_text "2" :
param_contains " 3 " ? get_text "3" :
param_contains " 4 " ? get_text "4" :
param_contains " 5 " ? get_text "5" :
keep going till
param_contains "10" ? get_text "10" :
then keep going as far as you think needed
 

发表时间 Fri 25 Aug 23 @ 9:15 am
Baldy68PRO InfinityMember since 2019
Hi, I am in preparation to make a custom controller (dubstation) for VDJ software. First I was thinking if there was possible to route the five stem outputs to five audio outputs in audio settings to route all stems live to another software, but until that will be doable (if ever) I was thinking maybe it is better to use VDJ as the only software since it is so powerful with scripting.

For testing purpose, I am now using a midimix (amongst other midi controllers) to try out if my idea is even possible to do.

Without being too technical the first problem I need to get solved is how to map a fader to behave like a crossfader for stems. In other words, I need to crossfade between the stems from two decks, where I am using one crossfader for every "pair" of stems meaning there will be five crossfaders for stems only. (for example, one crossfader for smooth transitions between Bass from deck one and Bass from deck two, and four more crossfaders for the other 4 stems). This will result in full volume on deck one when all five faders are down, and full volume on deck two when all faders are in top position, and a mix of both decks when the faders are in the middle position.
I have read about verbs and parameters and have no problems mapping any buttons, faders or knobs, but to make this crossfading function I can't find the working parameters. I tried adding 0%-100% and 100%-0% and 0.0-1.0 and 1.0-0.0 but either the fader doesn't work at all or as default, meaning 0-100%

When I get this working, I need to have three effects (echo, reverb and flanger resulting in three knobs for each crossfader) affecting only that "pair" of stems, but this shouldn't be any problems since I have seen there already are effects that affects a specific stem only?

If I could be pointed in the right way to learn how to script these things I will be forever grateful! :-D
 

发表时间 Sun 27 Aug 23 @ 3:35 pm
locoDogPRO InfinityModeratorMember since 2013
nothing & nothing & param_invert & param_multiply 0.5 & deck 1 eq_low & param_multiply 2 & param_invert & param_multiply 0.5 & deck 2 eq_low

See this example on a custom_button [dial version]
ignore the nothing & nothing, that's just a quirk of custom_buttons with param manipulation

invert the value so the dial is mapped backwards, and half it, then it's good for deck 1, then multiply by 2 and invert it, [so it once again is the value from the dial], then half it and it's good the send to deck 2
 

发表时间 Sun 27 Aug 23 @ 4:01 pm
Baldy68PRO InfinityMember since 2019
Wow! You are absolutely incredible, just like that, no problems at all for you! Thank you so much, I can't for my life figure out where you found this information though! Thank you so much man! :-D :-D :-D
 

发表时间 Sun 27 Aug 23 @ 4:44 pm
locoDogPRO InfinityModeratorMember since 2013
reading, asking questions, and keep trying stuff long after a sensible person would have found something better to do.
 

发表时间 Sun 27 Aug 23 @ 4:47 pm
Baldy68PRO InfinityMember since 2019
locodog wrote :
reading, asking questions, and keep trying stuff long after a sensible person would have found something better to do.


Hahaha, yeah I don't know how many hours I spent before I gave up and asked here!
Since I got your attention could you point me in the direction how to make an effect (I will use very specific VST-plugin dub reggae effects to make it as true to a real dubstation as possible) applied to just one or in my case a pair of stems?

Can I donate money to you in some way? I really REALLY appreciate the insane work and time you must have spent with all this knowledge, to share it for free!
 

发表时间 Sun 27 Aug 23 @ 5:36 pm
locoDogPRO InfinityModeratorMember since 2013
Wow thanks, the beer fund is always open,
ThrowInToBeerFund


deck 1 effect_active vocals echo & deck 2 effect_active vocals echo
this would turn echo effect on the vocal stems
if you look up the script description for effect_stems you can see the names used for stem effect slots [except for some reason they chose "vocals" for vocal, I don't know why]
 

发表时间 Sun 27 Aug 23 @ 5:56 pm
Baldy68PRO InfinityMember since 2019
This didn't work, maybe since I use knobs to control it?
"deck 1 effect_active vocals echo & deck 2 effect_active vocals echo"
Probably I wasn't clear enough. My knobs shows up as sliders in mapping software.

EDIT:
Actually this did work after I restarted VDJ, lesson learned. :-D
"Deck 1 effect_slider 1 1 & effect_stems Bass on & Deck 2 effect_slider 1 1 & effect_stems Bass on"

I sent some pennies for beer, but don't get too drunk yet! lol.
 

发表时间 Sun 27 Aug 23 @ 7:30 pm
locoDogPRO InfinityModeratorMember since 2013
thank you very much,
I think see the problem, you're calling effect_stems after ? I think

Deck 1 effect_stems Bass on & effect_slider 1 1 & Deck 2 & effect_stems Bass on & effect_slider 1 1
maybe that
 

发表时间 Sun 27 Aug 23 @ 7:44 pm
Baldy68PRO InfinityMember since 2019
Tryed that also, it seemed to work for a while but no. Maybe the effects I use isn't the right ones to send to stems only? I am trying now with default Echo, Reverb and Flanger, but it affects all stems whatever I do. I give up for today. This is an example of the code I use now:
Deck 1 effect_stems Bass on & effect_slider 1 1 & Deck 2 effect_slider 1 1 & effect_stems Bass on
 

发表时间 Sun 27 Aug 23 @ 9:42 pm
79%