Se Connecter:     


Forum: VirtualDJ Plugins

Sujet: Change the song position

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

How is it possible to change the song position by passing the sample number/ID? I tried with "ChangePosition()", but it is only for visualization, not for the actual needle position...
 

Posté Tue 15 Mar 11 @ 3:16 am
I would say SendCommand() with the function "song_pos" or "goto"
 

I've tried them, but it looks like I cannot pass the position in absolute samples, "only" as percent or relative (excellent for skins though).
 

I'm not plugin expert, but i think that if you know the songpos in relative (as a percentage) and the length of the song, can't you calculate the exact position in time?
 

you can use "goto 50000ms" as a command and it WILL work as an absolute position (not as a relative position) but I don't know if this is accurate enough for you...

BTW: 44100 samples per sec = 1000 ms per sec => 1 ms = 44.1 Samples
If you need more accuracy "goto" won't stand up to your needs!
 

Yup, I was already thinking about using milliseconds. I'll make some tests to see if they're enough precise for my purpose, and I think they will be :-)
 



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