Quick Sign In:  

Forum: VirtualDJ Skins

Topic: New Script

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

What does it mean.
-param_cast "absolute" and param_cast "relative"
It was fine when the Team also give a Explanation for new Script Commands or Funktions ;-)
Greatings Dani
 

geposted Sun 16 Feb 20 @ 10:31 am
locoDogPRO InfinityModeratorMember since 2013
get_constant 1 & param_cast 'absolute' & goto
this will go to beat 1 [the one after the zero/first beat]

get_constant 1 & param_cast 'relative' & goto
this will go just one beat forward where ever you are at the time,

it fixes a bit of a script maths blindspot, limitations for casting that existed when actions could accept either a relative or an absolute value, like goto can.
before a positive number variable was always seen as an absolute, and a negative was always seen as relative and not much could be done without some serious script gymnastics. now you can tell the script, relative or absolute.
absolute has most uses when the number you are dealing with is negative
relative has most uses when the number you are dealing with is positive


other useful things it opens up, incrementing things

set 'a' 0.1 & get_var 'a' & param_cast 'absolute' & level
will set the level at 0.1, [because a==0.1 is absolute already you don't need to really include it, same result as set 'a' 0.1 & get_var 'a' & param_cast & level]
set 'a' 0.1 & get_var 'a' & param_cast 'relative' & level
will increase the level by, 0.1
 

geposted Sun 16 Feb 20 @ 11:12 am
locodog wrote :
get_constant 1 & param_cast 'absolute' & goto
this will go to beat 1 [the one after the zero/first beat]


get_constant 1 & param_cast 'relative' & goto
this will go just one beat forward where ever you are at the time,

Ok thank You ;-)
This first script , I think it is the same how phrase_sync 'auto' ?
 

geposted Sun 16 Feb 20 @ 5:50 pm


(Alte Themen und Foren werden automatisch geschlossen)