Hello, fellow VirtualDJ users,
I recently started to script in VirtualDJ and I wish to have a skin which searches for a keyword in the comment field of the song which has just been loaded, and activates or deactivates repeat_song accordingly.
I have tried
If you have any corrections, please share them.
Thank you in advance for your help!
I recently started to script in VirtualDJ and I wish to have a skin which searches for a keyword in the comment field of the song which has just been loaded, and activates or deactivates repeat_song accordingly.
I have tried
<onload action="repeat_start_instant 'repeatSongIfSongIsLoop' 190ms & load_pulse ? nothing : param_contains `get_loaded_song 'comment'` 'Loop' ? repeat_song on : repeat_song off"/>but param_contains `get_loaded_song 'comment'` 'Loop' seems to always return false.
If you have any corrections, please share them.
Thank you in advance for your help!
Inviato Mon 28 Oct 24 @ 3:16 pm
Wrong way round, it works like this
param_contains `THING YOU ARE LOOKING FOR` 'THING YOU ARE LOOKING INSIDE OF' ?
'THING YOU ARE LOOKING INSIDE OF' & param_contains `THING YOU ARE LOOKING FOR` ?
param_contains `THING YOU ARE LOOKING FOR` 'THING YOU ARE LOOKING INSIDE OF' ?
'THING YOU ARE LOOKING INSIDE OF' & param_contains `THING YOU ARE LOOKING FOR` ?
Inviato Mon 28 Oct 24 @ 4:48 pm
It works! Thank you, M. LOCODOG!
If anyone is interested in the final code, it is :
If anyone is interested in the final code, it is :
<onload action="repeat_start_instant 'repeatSongIfSongIsLoop' 190ms & load_pulse ? nothing : param_contains 'Loop' `get_loaded_song 'comment'` ? repeat_song on : repeat_song off"/>or
<onload action="repeat_start_instant 'repeatSongIfSongIsLoop' 190ms & load_pulse ? nothing : get_loaded_song 'comment' & param_contains 'Loop' ? repeat_song on : repeat_song off"/>
Inviato Tue 29 Oct 24 @ 7:49 am