Ingresar:     


Forum: General Discussion

Tópico: check if browsed song = loaded song?

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

Hey all!

I am trying to write a VDSscript that checks if the currently selected song in the browser is currently loaded in e.g. Deck 1. And if yes to perform a certain action.

Has anybody an idea which would be the query?

Thanks!
 

Mensajes Sat 08 Oct 16 @ 8:23 am
 

locodog, your're the best!
 

No worries, out of curiosity, what are you doing?
 

I wanted to post it anyway. So here it is. I am inspired by another user that wrote about a prelistening script. So mine does this:

Assigned to a button on a controller:

- Load the currently selected song into the not-playing or not-audible deck. (either Deck 1 or 2)
- Switch PFL on for this deck
- Level volume 0%
- play the song
- When the button is pressed again the script checks if another song has been selected in the browser (there comes your script into place), if NO it stops playing the prelistening deck and sets vol level back to 50%, if YES it loads the song and plays it.

I found thats for me the most effective way to prelisten to a song.

Here it is:

deck 1 play ? deck 1 level 0% ? deck 1 param_equal '`get_filepath`' '`get_browsed_filepath`' ? deck 1 stop & deck 1 level 50% : deck 1 load & deck 1 level 0% & deck 1 pfl on & deck 2 pfl off & deck 1 play : deck 2 play ? deck 2 level 0% ? deck 2 param_equal '`get_filepath`' '`get_browsed_filepath`' ? deck 2 stop & deck 2 level 50% : deck 2 load & deck 2 level 0% & deck 2 pfl on & deck 1 pfl off & deck 2 play : nothing : deck 2 load & deck 2 level 0% & deck 2 pfl on & deck 1 pfl off & deck 2 play : deck 1 load & deck 1 level 0% & deck 1 pfl on & deck 2 pfl off & deck 1 play

There might be ways to shorten it, but it works for me and I wanted to be on the safe side, so that it does not accidentl stops the wrong deck etc...
 

I guess your original idea was from Pachn, we bounce idea's off each other regularly,

I think it's pretty cool that you're expanding on shared ideas, with vdj custom is king.
 



(Los tópicos y foros antiguos son automáticamente cerrados)