Se Connecter:     


Forum: VirtualDJ Technical Support

Sujet: VDJscript: Function when playing on master deck

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

Hey guys,

I'm creating some functions with MIDI, and I've had success executing them through manual actions with custom button presses, but I would like some functions to be executed automatically, with the song playing on the master deck.

I've already reviewed this entire forum, Google and Youtube, and the most I could find were indications for using repeat_start and repeat_stop... but it doesn't seem so appropriate to leave a script always running when there is an event (play master deck) that marks when the script should run.

Can anyone help please? Thanks!
 

Posté Mon 07 Aug 23 @ 1:50 am
repeat_start is the way
 

Thanks for the feedback @Locodog . I'll use repeat_start then.

I was afraid to use it and increase the notebook's resource consumption (CPU, RAM), but I didn't notice a difference using 1000ms... at least not for now, in the quick test I did now.

Do you think that using repeat for 1000ms (1sec) for 4 hours can compromise the computer's resources or from your experience this does not happen, repeat does not compromise the notebook's resources?
 

your skin evaluates many scripts 30+ times a second, a repeat_start at 1000ms is trivial.
 

Excellent. I'm calmer now. Thanks again for the support @Locodog. Have a great week!
 



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