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"
Posté Tue 15 Mar 11 @ 1:43 pm
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).
Posté Tue 15 Mar 11 @ 2:03 pm
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?
Posté 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!
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!
Posté Wed 16 Mar 11 @ 7:27 am
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 :-)
Posté Wed 16 Mar 11 @ 7:46 am