Ingreso rápido:  

Forum: General Discussion

Tema: Script School - Page: 38.55
@LOCODOG, would you please add just a little more info

where do i search for `sampler0`? I searched in "Options & Tweaks" (the gear button up at the top), and nothing came up.

I know how to script a custom button, but where are the scriptable Sampler settings?
How do I launch the dialog window where the Sampler setting script can be entered?

If you could point me to a tutorial or something, I would appreciate that too.
Thank you
 

Mensajes Tue 05 Sep 23 @ 3:54 am
locoDogPRO InfinityModeratorMember since 2013
it's not a zero it's an "o"
 

Mensajes Tue 05 Sep 23 @ 10:23 am
oh got it, LOCO, thank you!

I was hoping I could improve the Sampler audio output configuration to make "trigger deck" do what it's supposed to do:

"If trigger deck is selected then it will route the Sample only to the deck where the sample was triggered from (either using deck specific shortcuts, or from a GUI or even a MIDI controller)"

right now, "trigger deck" just sends output to master just like "master" does.
 

Mensajes Tue 05 Sep 23 @ 5:57 pm
Baldy68PRO InfinityMember since 2019
locodog wrote :
@baldy try this instead
deck 1 effect_slider "Vocals" "echo" 1 & deck 2 effect_slider "Vocals" "echo" 1 & ( deck 1 effect_active "Vocals" "echo" ? : deck 1 effect_active "Vocals" "echo" on ) & deck 2 effect_active "Vocals" "echo" on ? : deck 2 effect_active "Vocals" "echo" on


Thank you locodog for not giving up on me!

This works the same as the other scripts though; if I go too wild with the knobs, one or another effect eventually gets stuck at max. It goes away when I reset all effects, but as soon as I touch any of the knobs with the effect that was stuck before, the effect goes to maximum and is stuck there again until I reset alla effects again, and this will not go away until I do a hardware reset on my midimix controller (pull the USB plug and reconnect)...

I never noticed this behavior before in either VDJ or midimix controller in other software. I start to think it has something to do with the fact I use several knobs controlling the same effect on different stems, which maybe means that VDJ need to allocate memory for separate effects for every stem sort of?

It is a bit confusing how the effects work for me, I use for example the "echo" effect on samples also, but it doesn't work anymore until I fiddle with the parameters. Are all instances in VDJ that use for example "echo" effect using the same instance of the effect so all stems and samples, master and anything refer to the same effect with the same parameters in the same allocated memory?

Sorry, this got way more complicated than I thought it would be...
 

Mensajes Wed 06 Sep 23 @ 5:07 pm
locoDogPRO InfinityModeratorMember since 2013
Baldy68 wrote :
I start to think it has something to do with the fact I use several knobs controlling the same effect on different stems, which maybe means that VDJ need to allocate memory for separate effects for every stem sort of?


It's not like that, think of effects on stems like it was another deck,
deck 1 has echo, deck 2 has echo they don't make any difference to each other.
[I say they don't make a difference, they do in the case of last touched fx sets the .ini for next session, but mostly they don't matter to each other]

Baldy68 wrote :

Are all instances in VDJ that use for example "echo" effect using the same instance of the effect so all stems and samples, master and anything refer to the same effect with the same parameters in the same allocated memory?


different memory but some cases they share an .ini file
I can't remember how many different fx slots create a separate .ini, there's a good few
master, decks, color, sampler, mic, release.

maybe instead of packing it into 2 decks, that could get confusing to work with, maybe record off stems as their own tracks and try think up a 10 deck skin.
Multiple decks is a mature idea, stems slots is still kind of new and maybe there's efficiencies to be found yet.
 

Mensajes Wed 06 Sep 23 @ 5:43 pm
Baldy68PRO InfinityMember since 2019
To learn to make my own skin I am afraid is too much work for me. And also, there already are stem splitters in every deck, so it feels like we tackle the problem backwards, making it more complicated than it needs to be. But I understand it is sadly too early to use the stems in this way in VDJ for the moment.

If there is nothing else to try (any coder input would be extremely appreciated) I guess my new revolutionary DJ-controller hardware is on hold. But at the same time, I wonder if the same issue would happen in an Arduino based DJ Midi controller...hmm, probably it would...
 

Mensajes Thu 07 Sep 23 @ 11:51 am
locoDogPRO InfinityModeratorMember since 2013
auto_bpm_transition


Introduced in BUILD 7651 auto_bpm_transition
***Edit New additions in Early Access BUILD 7682***

What is it? How does it work? How do you script it?

So what it does; It changes the pitch of the calling deck to match the bpm of the other deck over a number of beats duration.

You call it simply with auto_bpm_transition , at that point it's on and it's going to run for the duration.

So how to set the duration?
the duration is a remembered setting [in settings...] autoBpmTransitionLength you can set it there to any positive number, I tested bigger numbers like 512, it seems there's no upper limit.
Remembered is good but going into settings is annoying, but we're in luck, another script was added to go with this script

auto_bpm_transition_options
with this we can set things that happen during the transition as well as the length

auto_bpm_transition_options length 16
that sets the length, params accepted any positive number.

auto_bpm_transition_options master_tempo
this will decide if master_tempo is used during the transition,
params accepted on or off

auto_bpm_transition_options loop
this will decide if a loop is used during the transition, the loop length used is the default loop size [the number you see on the skin for regular loops]
params accepted on or off

And a collection of stems to use in the transition buttons
auto_bpm_transition_options stems vocal
auto_bpm_transition_options stems instru
auto_bpm_transition_options stems bass
auto_bpm_transition_options stems drums

params accepted on or off
on means use this stem, off means mute this stem

***Edit New in Early Access BUILD 7682
auto_bpm_transition_options autostart
params accepted on or off
this will start the other deck when you start the transition

auto_bpm_transition has extra optional parameter to select target bpm 'source_original', 'target_original' or 'target_current'
auto_bpm_transition 'target_current'
auto_bpm_transition 'target_original'
auto_bpm_transition 'source_original'
***


Ok so a real example, I want it all ready to go on one button, I want a 16 beat transition, with master_tempo off, with a loop of 4 beats long, with everything but the vocals muted, I want it to match the other deck's current bpm, I want the other deck to start with the transition and I want it to go instantly

Just list it all

auto_bpm_transition_options length 16 & auto_bpm_transition_options master_tempo off & auto_bpm_transition_options loop on & auto_bpm_transition_options stems vocal on & auto_bpm_transition_options stems instru off & auto_bpm_transition_options stems bass off & auto_bpm_transition_options stems drums off & loop_select 4 & auto_bpm_transition_options autostart on & auto_bpm_transition 'target_current'


A bit of a mouthful but sometimes that's how it is.

And because the development staff love you, they put it all in a pad_page so you only have to pay attention to me ... if ... you're ... into knowing this kind of fine detail.
A-BPM_TR Pad page


Next episode will be a round up of the little bits added to the script engine here and there [not related to this]
 

Mensajes Mon 18 Sep 23 @ 8:48 am
Baldy68PRO InfinityMember since 2019
Interesting, can this stuff be triggered from POI "Tempo Start" and POI "Tempo Exit", or any other cue points?
 

Mensajes Tue 19 Sep 23 @ 1:08 pm
locoDogPRO InfinityModeratorMember since 2013
Not those exact poi, because they don't hold actions. And you're going to lose the battle as automix will want to do its own thing with the pitch.
But outside of automix, action poi can call this script.
 

Mensajes Tue 19 Sep 23 @ 1:16 pm
Hi guys, is it possible to modify this script so that the filter runs on the negative Hz side?

locodog wrote :

Strap it all together, job done

repeat_start_instant 'filtOsc' ? repeat_stop 'filtOsc' : repeat_start_instant 'filtOsc' 30ms -1 & param_bigger `get_beat_bar 8` 0.5 ? get_beat_bar 8 & param_multiply 0.6 & param_add 0.5 & param_cast & filter : get_beat_bar 8 & param_multiply -1 & param_add 1 & param_multiply 0.6 & param_add 0.5 & param_cast & filter


 

Mensajes Tue 19 Sep 23 @ 2:02 pm
locoDogPRO InfinityModeratorMember since 2013
Negative Hz, there's a mind blowing concept, things that don't happen so many times a second.
I joke, I know what you mean, into the left side of the dial, the lowpass part of the filter.

Sure here you go.

repeat_start_instant 'filtOsc' ? repeat_stop 'filtOsc' : repeat_start_instant 'filtOsc' 30ms -1 & param_bigger `get_beat_bar 8` 0.5 ? get_beat_bar 8 & param_multiply -1 & param_multiply 0.6 & param_add 0.5 & param_cast & filter : get_beat_bar 8 & param_multiply 0.6 & param_add -0.1 & param_cast & filter


Wow that was a blast from the past, I might work with beat_bar more again, in some ways it can work out cleaner
 

Mensajes Tue 19 Sep 23 @ 2:26 pm
Thanks! I was thinking the code needed to be modified changing some of the parameters from +´s to -´s (which I tried)...hence -Hz hehe

BWT I´m new to DJing (7 months now) and decided to explore this world after an accident the left me quadriplegic (4 years ago), that means that scripts, which I discovered 3 days ago, are my new best friends as I cannot move my arms (or anything from the chest down).
 

Mensajes Tue 19 Sep 23 @ 8:55 pm
locoDogPRO InfinityModeratorMember since 2013
Sure I totally understand the accessibility angle, with script you can do a whole lot with a simple button press. I'll be here if you have questions.
 

Mensajes Tue 19 Sep 23 @ 10:36 pm
locodog wrote :
Sure I totally understand the accessibility angle, with script you can do a whole lot with a simple button press. I'll be here if you have questions.


Ok, let me abuse a little; I want to automate a PullUp.

That is: 1.PullUp Sampler + 2.Backspin effect + 3.Go to cue 1 and play.

I have tried this script in every combination and it never plays in this order: I want it so that when the sampler starts, lower gain (20%) in active deck, wait 1-2 secs, and then backspin, finish effect, and then play from cue 1.

acttive_deck & effect_active 'backspin' & goto_cue 1 & play sampler_volume_master 50% &
sampler_bank 1 & sampler_play_stop 1 &
sampler_volume_master 50%

 

Mensajes Wed 20 Sep 23 @ 9:33 pm
locoDogPRO InfinityModeratorMember since 2013
sampler_play_stop 1 & level -20% & wait 1500ms & effect_active backspin & repeat_start_instant rsiFXcheck 25ms -1 & effect_active backspin ? nothing : repeat_stop rsiFXcheck & hot_cue 1

Something like that
 

Mensajes Wed 20 Sep 23 @ 11:19 pm
Almost perfect! Added & level +20% at the end to return gain back to normal. Thanks!

locodog wrote :
sampler_play_stop 1 & level -20% & wait 1500ms & effect_active backspin & repeat_start_instant rsiFXcheck 25ms -1 & effect_active backspin ? nothing : repeat_stop rsiFXcheck & hot_cue 1

Something like that


 

Mensajes Thu 21 Sep 23 @ 1:14 am
locoDogPRO InfinityModeratorMember since 2013
level, not gain. Gain is an amplification. The up faders / level faders, [some call them gate faders] are how much of that amplified signal you let through.

It's common for new djs to use them as synonyms.

 

Mensajes Thu 21 Sep 23 @ 1:30 am
locoDogPRO InfinityModeratorMember since 2013
@bjk6njhc9s, I sent you a pm with a couple of fx I think you'll like.
 

Mensajes Thu 21 Sep 23 @ 5:59 am
locoDogPRO InfinityModeratorMember since 2013
auto_bpm_transition page updated with early access additions.
 

Mensajes Thu 21 Sep 23 @ 4:05 pm
locodog wrote :
level, not gain. Gain is an amplification. The up faders / level faders, [some call them gate faders] are how much of that amplified signal you let through.

It's common for new djs to use them as synonyms.

Understood! Thanks!

 

Mensajes Fri 22 Sep 23 @ 12:21 am
83%