Connexion rapide:  

Forum: General Discussion

Sujet Script School - Page: 23.55
docb-djPRO InfinityMember since 2019
locodog wrote :
param_smaller 0.5 ? deck 2 stem 'vocal' & deck 1 stem 'vocal' 0.5 : param_invert & deck 1 stem 'vocal' & deck 2 stem 'vocal' 0.5


Wow... Thank you. Very nice indeed.

After using this, I now have a new wish:
How to program a button so that it inverts the above stem fade.
So, for example, when that button is toggled it would switch (invert/flip/etc) the stem from 75%/25% L/R to 25%/75% L/R. Another press/toggle would change it back again.

 

Posté Sat 15 Jan 22 @ 12:39 am
locoDogPRO InfinityModeratorMember since 2013
@docb-dj
see; set variables & cast.
 

Posté Sat 15 Jan 22 @ 2:15 am
docb-djPRO InfinityMember since 2019
locodog wrote :
@docb-dj
see; set variables & cast.


I'm still in the process of working on those.

It's probably a dumb question, but:
Why can't I just param_invert the encoder value when it's button is pressed?

Probably Answer: Because param_invert by default tries to invert the same midi encoder/button/etc CC device that called it. What I'm looking for is when param_invert is used from a button, it'll invert a different MIDI Encoder. As param_invert doesn't work like that, using SET is will be required to share state between the button and encoder. I think...


 

Posté Mon 17 Jan 22 @ 9:36 pm
mg_1978PRO InfinityMember since 2008
hi! i have a ‘Instant fx’ pad page and for example pad 1 is mapping: padfx ‘flanger’ 0.6 0.9
but if i would that slicer 1 starts from 0% to 60% in 2 second and stop at 60% until i have pad pushed, how do i map pad 1? and when i release pad 1 slicer 1 return to 0%….
thanks!!!
 

Posté Mon 24 Jan 22 @ 6:29 pm
Good way to test it
 

Posté Mon 24 Jan 22 @ 6:47 pm
locoDogPRO InfinityModeratorMember since 2013
@mg_1978 not really making sense.
 

Posté Mon 24 Jan 22 @ 7:56 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
@mg_1978 not really making sense.

thanks, i would try…can you help me?

 

Posté Mon 24 Jan 22 @ 8:09 pm
locoDogPRO InfinityModeratorMember since 2013
I literally don't understand what you want.
 

Posté Mon 24 Jan 22 @ 9:00 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
I literally don't understand what you want.

can you see flanger slider 1? i would that with pad pressure slider 1 is not 80% istantanealy, but go from 0% to 80% in 500ms and at 80% it stop and remain 80%….

 

Posté Mon 24 Jan 22 @ 10:04 pm
locoDogPRO InfinityModeratorMember since 2013
so, slider zero, fx on, rs to move the slider like 8% every 50ms, give a count of 10 or have a query to turn the rs off when % = 80
 

Posté Mon 24 Jan 22 @ 10:36 pm
mg_1978PRO InfinityMember since 2008
yes! when pad is pushed or in toggle mode, like padfx smart_pressed

 

Posté Mon 24 Jan 22 @ 10:44 pm
mg_1978PRO InfinityMember since 2008
mg_1978 wrote :
[quote=locodog]so, slider zero, fx on, rs to move the slider like 8% every 50ms, give a count of 10 or have a query to
turn the rs off when % = 80


yes! when pad is pushed or in toggle mode, like padfx smart_pressed

i have mapped: down? effect_slider ‘flanger’ 1 0% & effect_active ‘flanger’ on & repeat_start ‘add’ 10ms & effect_slider ‘flanger’ 1 +2% & effect_slider ‘flanger’ 1 80% ? repeat_stop ‘add’ : nothing : repeat_stop ‘add’ & effect_slider ‘flanger’ 1 0% & effect_active ‘flanger’ off

is work, but not in toggle mode too :(

 

Posté Mon 24 Jan 22 @ 10:49 pm
locoDogPRO InfinityModeratorMember since 2013
rs scripts don't run that fast, quickest you can have reliably is 30ms
obviously it won't work as a toggle, down ? doesn't have a toggle like state

if you want like padfx smart_pressed, use padfx.
slider zero, padfx smart_pressed, rs 50ms 10 times, query fx on ? true increase slider : false repeat_stop
 

Posté Mon 24 Jan 22 @ 11:21 pm
mg_1978PRO InfinityMember since 2008
@Locodog: thanks to your help I found the right script:
 

Posté Tue 25 Jan 22 @ 12:02 am
locoDogPRO InfinityModeratorMember since 2013
not quite what I had, but good stuff, In future post the actual script & not a screenshot [sideways camera shot, eugh], makes it easier for everybody.

effect_slider 'flanger' 1 0 & padfx 'flanger' smart_pressed & repeat_start 'lic' 50ms 10 & effect_active 'flanger' on ? effect_slider 'flanger' 1 +8% : repeat_stop 'lic'
 

Posté Tue 25 Jan 22 @ 12:11 am
docb-djPRO InfinityMember since 2019
So I figured out how to have a dial pan between stems and on button press invert a given stem:

First, the pan:

set $fv & param_smaller 0.5 ? set $rv & deck right stem 'vocal' & set $lv 0.5 & deck left stem 'vocal' 0.5 : param_invert & set $lv & deck left stem 'vocal' & set $rv 0.5 & deck right stem 'vocal' 0.5


Second, the button:

set $temp '$lv' & set $lv '$rv' & set $rv '$temp' & get_var $rv & param_cast & deck right stem 'vocal' & get_var $lv & param_cast & deck left stem 'vocal' & get_var $fv & param_invert & set $fv



I use the $fv variable to keep the led dial lights synced
 

Posté Sat 05 Feb 22 @ 5:59 pm
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?
 

Posté 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.
 

Posté 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
 

Posté 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.
 

Posté Tue 08 Mar 22 @ 10:31 pm
51%