快速登录:  

Forum: General Discussion

话题: check if browsed song = loaded song?

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

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!
 

发表时间 Sat 08 Oct 16 @ 8:23 am
locoDogPRO InfinityModeratorMember since 2013
 

发表时间 Sat 08 Oct 16 @ 5:12 pm
locodog, your're the best!
 

发表时间 Sat 08 Oct 16 @ 9:33 pm
locoDogPRO InfinityModeratorMember since 2013
No worries, out of curiosity, what are you doing?
 

发表时间 Sat 08 Oct 16 @ 10:04 pm
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...
 

发表时间 Sun 09 Oct 16 @ 7:22 am
locoDogPRO InfinityModeratorMember since 2013
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.
 

发表时间 Sun 09 Oct 16 @ 10:51 am


(陈旧帖子或论坛版块会自动关闭)