Ingresar:     


Forum: General Discussion

Tópico: Script School - Page: 51
down ? hot_cue 2 & get_loop & param_cast & loop_roll : effect_active 'loop roll' off & sync


something along the lines of this.
 

Any luck in finding out how to do this:

Set '%Fader' 0.0
crossfader %Fader
 

I have a working kludge:

set '%Dst' 1 &
set '%Fader' 0.0 &

(var_smaller "%Fader" 0.6 ?
crossfader 0.0 &
:
crossfader 1.0) &

set_deck `get_var %Dst` &
select &
stop & stop &
play

 

bgavin wrote :
Any luck in finding out how to do this:

I told you
locoDog wrote :
See examples of param_cast


 

Q: How does one code the end of an If-Then-Else block?

pseudo code:
if '$sngFader' = 0.500 Then
deck 1 select
else
deck 2 select
end if


VDJ script:
var_equal '$sngFader' 0.500 ? deck 1 select : deck 3 select

& var_list

var_list only executes in the ELSE block of the structure.

Brackets () don't work here.
I can't figure out how to end the conditional statement and continue on.

 

read my post on brackets in script, you'll find a link in the OP index.
 

That is what I was searching for.

Your post notes that Build 6920 and later incorporates the brackets syntax.
Brackets were working fine on my 2025 desktop version, but failing on my 6747 build on my Win 8.1 laptop.
 

I've not quite figured out a workaround for the forward procession of time... yet
Prior to 6920 brackets in script weren't a thing, so they don't work in earlier builds.

I have ways to "function out" queries [that are far backwards compatible, make a separate branch/thread to encapsulate] but you're asking for a technician's solution, it's part of the language but it's a different dialect, so things work different.
I do technicianing solutions but only over PM [licence holders] and expect beer tokens.