Hi,
I have mapped a key that allows me to fade out the current track and then load the next song in the playlist:
auto_crossfade 10000ms & wait 10000ms & deck left stop_button & auto_crossfade 100ms & deck left load_next & mix_now : nothing
This action takes about 20s. If for example I change my mind after 5 seconds (so that the current song keeps playing till the end and the next one is not loaded and played) , how could I abort the ongoing instruction? For example by keeping pressed the same mapped key.
Would you have any suggestion on how to achieve that?
Thanks,
GD
I have mapped a key that allows me to fade out the current track and then load the next song in the playlist:
auto_crossfade 10000ms & wait 10000ms & deck left stop_button & auto_crossfade 100ms & deck left load_next & mix_now : nothing
This action takes about 20s. If for example I change my mind after 5 seconds (so that the current song keeps playing till the end and the next one is not loaded and played) , how could I abort the ongoing instruction? For example by keeping pressed the same mapped key.
Would you have any suggestion on how to achieve that?
Thanks,
GD
Mensajes Sat 11 May 24 @ 11:41 am
Not always possible, this case we can.
The process takes 10100ms, so in a bracketed part of the script we set a variable, wait, then unset the variable. Then in the main body of the script query the state of the variable
The process takes 10100ms, so in a bracketed part of the script we set a variable, wait, then unset the variable. Then in the main body of the script query the state of the variable
( var autoXF 0 ? set autoXF 1 & wait 10100ms & set autoXF 0 : set autoXF 0 ) & var autoXF 1 ? auto_crossfade 10000ms & wait 10000ms & var autoXF 1 ? deck left stop_button & auto_crossfade 100ms & deck left load_next & mix_now : nothing : auto_crossfade
Mensajes Sat 11 May 24 @ 12:41 pm
That's amazing, it works perfectly!!
I had no idea how to work with variables.
Thanks a lot!!
I had no idea how to work with variables.
Thanks a lot!!
Mensajes Sat 11 May 24 @ 1:11 pm