Connexion rapide:  

Forum: General Discussion

Sujet Scripting Questions and An Effect Question

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Using the beat sensitive shaders on a pad page. Got them down to change every beat. What would be the command to get them to change every half beat? I have tried .5 and 1/2 with no luck.

Here is the full script:
set 'ASB' 1 & repeat_start_instant 'AS' 25ms & deck master get_beat_bar "X" & param_smaller 0.5 ? var 'AOVdoOnce' 0 ? effect_string 'audioonlyvisualisation' 1 +1 & set 'AOVdoOnce' 1 : nothing : set 'AOVdoOnce' 0

The "X" is the placeholder for the variable.

Using this script to change panels: skin_panelgroup 'fx_deck2' +1

What would the command be to change the panel on the active deck as opposed to a specific deck? Tried omitting the deck number to no avail.

For beat sensitive deck video effects, would it be possible to have the effect be active even if the deck was not active? For example, the video would still shake even though the fader was down and the deck was not active, but the track was playing.

Checked settings and didn't see anything like that available.

As always, thanks in advance for any help. Hope you all are starting to perform again!
 

Posté Tue 18 May 21 @ 6:27 am
locoDogPRO InfinityModeratorMember since 2013
Ah, nice to see questions that have been investigated.

1 there is no beat_bar smaller than 1 so you'll have to get inventive

...... & deck master get_beat_bar 1 & param_multiply 2 & param_cast 'frac' & param_smaller 0.5 ? var 'AOVdoOnce' 0 ? effect_string 'audioonlyvisualisation' 1 +1 & set 'AOVdoOnce' 1 : nothing : set 'AOVdoOnce' 0

2 no real shotcut for this, just use queries to find which deck is selected/active then call the specific panel name when you know.

3 depends on setting FXprocessing, if pre, no problem, it just works, if post problem that isn't really remediable [not strictly true, but it's not practical]
 

Posté Tue 18 May 21 @ 7:02 am
NicotuxHome userMember since 2014
get_beat_bar take time signature denominator as an argument and result as percent
"get_beat_bar " default to 4:4
"get_beat_bar 16" is 4:16
so that "get_beat_bar & param_smaller 0.5 ? ..."
change every 2 beats
"get_beat_bar 2 & param_smaller 0.5 ? ..."
change every beats

if you want to use a variable :
"get_var "X" && get_beat_bar & param_smaller 0.5 ? ..."
will change every X/2 beats
if needed (depending on type of var X)
get_var "X" & param_cast int && get_beat_bar


 

Posté Tue 18 May 21 @ 7:02 am
NicotuxHome userMember since 2014
locodog is right .. get_beat_bar 1
 

Posté Tue 18 May 21 @ 7:10 am
NicotuxHome userMember since 2014
Ho yes... Warn about changing shaders too fast, some take time to initialize and switching while not on can end with crash of graphic engine and computer

In a way to get "inventive" (with part of beat) you also can try things like this:
(I did remember we already dit this ... it was for dmx actions)

get_beatgrid & param_mod 1.0 & param_smaller 0.03125 ? ... (twice a beat / every half beat)
get_beatgrid & param_mod 0.5 & param_smaller 0.03125 ? ... (4 times a beat)
get_beatgrid & param_mod 0.25 & param_smaller 0.03125 ? ... (8 times a beat)
...
not test against 0 (half of a beat) because of script lattency 0 can be skipped and 1/32 maximum
 

Posté Tue 18 May 21 @ 7:53 am


(Les anciens sujets et forums sont automatiquement fermés)