Accesso rapido:  

Forum: VirtualDJ Technical Support

Topic: Script if absolute bpms are 12% different.
Help required. I need a script to activate pad 1 if the absolute bpms of the playing deck and loaded deck are +or - 15% different of each other. I can't find a command to find the difference between the bpms.
 

Inviato Tue 30 Apr 24 @ 3:31 pm
locoDogPRO InfinityModeratorMember since 2013
ONSONGLOAD event it would be something like this,

( param_smaller 0.85 "param_multiply 'get_bpm absolute' 'set_deck `param_mod 2 get_deck & param_add 1` & get_bpm absolute & param_1_x'" ? set_deck `param_mod 2 get_deck & param_add 1` & pad 1 : param_bigger 1.15 "param_multiply 'get_bpm absolute' 'set_deck `param_mod 2 get_deck & param_add 1` & get_bpm absolute & param_1_x'" ? set_deck `param_mod 2 get_deck & param_add 1` & pad 1 : ) & ...
 

Inviato Tue 30 Apr 24 @ 3:52 pm
Thank you LocoDog for you quick response. I will get my head around it all when i get home tonight 👍
 

Inviato Tue 30 Apr 24 @ 4:06 pm
locoDogPRO InfinityModeratorMember since 2013
the set_deck bit is new ish, really all it's doing is 'if song load is this deck, then do stuff with other deck' [like press pad or get other deck bpm]

PM me if it needs tweaking, I think I got everything in the right order but obviously you'll check in greater detail than I did.
 

Inviato Tue 30 Apr 24 @ 4:11 pm
Works a treat, i would of never of worked that all out thalks once again.
 

Inviato Tue 30 Apr 24 @ 6:19 pm