快速登录:  

Forum: VirtualDJ Plugins

话题: Change the song position

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

TexZKPRO InfinityMember since 2005
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...
 

发表时间 Tue 15 Mar 11 @ 3:16 am
djcelPRO InfinityModeratorMember since 2004
I would say SendCommand() with the function "song_pos" or "goto"
 

发表时间 Tue 15 Mar 11 @ 1:43 pm
TexZKPRO InfinityMember since 2005
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).
 

发表时间 Tue 15 Mar 11 @ 2:03 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
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?
 

发表时间 Tue 15 Mar 11 @ 9:47 pm
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!
 

发表时间 Wed 16 Mar 11 @ 7:27 am
TexZKPRO InfinityMember since 2005
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 :-)
 

发表时间 Wed 16 Mar 11 @ 7:46 am


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