VST: getTimeInfo() bug

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi Forum
I wrote a little tool which stores the sample position from the VstTimeInfo for each note.
Now here comes the problem:
When the cycle mode is activated the values for samplePos returned by getTimeInfo() get smaller by one sample in each cycle. In other words a note which was located at samplePos==1000 will appear at samplePos==999 in the next cycle!?
Is this a bug in the getTimeInfo() method? Any ideas anyone?
Regards
Gunnar

Post

hi
have you tried your code in another host?
sounds like a host-bug
~a

Post

I think some host(s), per example: cubase SX2 if i'm not wrong, just dont reset the samplePos counter when cycle restarts.

So yes, it sounds like a bug. (imho)
"If I could just say a few words... then I'd be a public speaker" -- Homer Simpson

Post

Another thing

samplePos 's utility is VERY limited.
Why do you need it?

using ppqPos and barStartpos is the way to go imho
David Viens, Plogue Art et Technologie Inc. Montreal.
https://twitter.com/plgDavid
https://plogue.com

Post

Hi again!
I tried it with Cubase SL2.0
The host seems to reset the samplePos counter but as far as I can see one sample too early.
I also tried ppqPos but this gave me the same results. The difference here correspondends to the time of one sample transformed into the ppq scale.
Regards
Gunnar

Post Reply

Return to “DSP and Plugin Development”