Accesso rapido:  

Forum: VirtualDJ Technical Support

Topic: Math... how to use it now ?
NicotuxHome userMember since 2014
How do the new version work ? or it is broken once again?

constant 10.0 & param_1_x & param_cast & debug
param_1_x 10.0 & param_cast & debug
constant 10.0 & param_cast & param_1_x & param_cast & debug
get_constant 10.0 & param_cast & param_pow -1 & param_cast & debug
get_constant 10 & param_cast & param_pow -1 & param_cast & debug

??

This one need two calls
constant 0.7 & param_delta & param_cast & debug
 

Inviato Wed 09 Jun 21 @ 1:50 pm
locoDogPRO InfinityModeratorMember since 2013
param_1_x assumes it will be cast

constant 10.0 & param_1_x & debug
So does param_pow
get_constant 10.0 & param_pow -1 & debug

not sure with delta, I've not yet found a reason to use it.
 

Inviato Wed 09 Jun 21 @ 2:04 pm
AdionPRO InfinityCTOMember since 2006
param_delta is indeed made to calculate the delta between 2 calls.
Don't remember where it is used, but probably was required for some controller at some point. (although doesn't seem to be used anymore in any of the default mappings)

param_pow can now indeed accept 2 parameters (and they can be scripts too)

param_1_x is still the same as before so applies to the slider it was called from
 

Inviato Wed 09 Jun 21 @ 2:10 pm
NicotuxHome userMember since 2014
can be used for some sliders to simulate fromcenter with standard effect slider to control vst

assumes it will be cast (but does not help in any way)

-2147483648 (MININT32) as a result of 10^-1 get_constant 10 & param_pow -1 & param_cast & debug
-1 as a result of get_constant 10 & param_cast & param_pow -1.0 & param_cast & debug
10 as a result to get_constant 10 & param_cast float & param_pow -1.0 & param_cast & debug
and get_constant 10.0 & param_pow -1.0 & param_cast & param_cast & debug
as well as to constant 10.0 & param_cast & param_1_x & param_cast & debug

need more explaination on how to get the correct value of 0.1

 

Inviato Wed 09 Jun 21 @ 2:35 pm
locoDogPRO InfinityModeratorMember since 2013
thinking about it, if param_delta accepted 2 actions, we'd have param_minus
 

Inviato Wed 09 Jun 21 @ 2:37 pm
locoDogPRO InfinityModeratorMember since 2013
@nico, don't cast before debug
 

Inviato Wed 09 Jun 21 @ 2:39 pm
AdionPRO InfinityCTOMember since 2006
param_pow -1.0 `get_constant 10` & param_cast & debug
 

Inviato Wed 09 Jun 21 @ 2:43 pm
NicotuxHome userMember since 2014

Yes, the backquotes ^^ and cast, thus can't be used in formats and hardly in text and to set a variable

and for other 1/x ? need pow -1.0 with backquote too

@locodog debug without cast is NoParam or boolean depending on verbs ^^ rarely other (autocast)
but here it is working, and in the opposite casting fails ^^ complex

param_1_x `get_constant 10` & param_cast & debug
param_1_x `get_constant 10.0` & param_cast & debug
param_1_x `get_constant 10` & debug
are NoParam

get_constant 10 &param_1_x & debug
param_add 5.0 5 & param_1_x & debug

are OK

difficult to figure out and to follow everything

 

Inviato Wed 09 Jun 21 @ 3:05 pm