VST: getTimeInfo() bug
-
menschmaschine menschmaschine https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=11619
- KVRer
- Topic Starter
- 9 posts since 9 Jan, 2004
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
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
-
- KVRist
- 41 posts since 15 Jun, 2003
hi
have you tried your code in another host?
sounds like a host-bug
~a
have you tried your code in another host?
sounds like a host-bug
~a
-
- KVRist
- 453 posts since 16 Sep, 2002 from Malaga (Spain)
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)
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
-
- KVRian
- 904 posts since 3 Aug, 2001 from Montreal
Another thing
samplePos 's utility is VERY limited.
Why do you need it?
using ppqPos and barStartpos is the way to go imho
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
https://twitter.com/plgDavid
https://plogue.com
-
menschmaschine menschmaschine https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=11619
- KVRer
- Topic Starter
- 9 posts since 9 Jan, 2004
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
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