I wrote a VST that displays a timeline of midi events as they are played back. the VST just receives Midi events from a track in the DAW host and draws them in its window on a timeline as they are played back.
I’d also like to be able to display the quarter note locations that the DAW is using. I can simulate what I want by adding midi notes to the track at the quarter note locations. However, I would like to figure out how to do this without midi. Seems the way to approach it is to sense when the host has crossed a quarter note location inside of processBlock. I tried monitoring the AudioPlayHead CurrentPositionInfo for when the quarter note location changes. This works but is only as accurate as the size of the audio buffer.
Has anyone figured out a way to get sample accurate locations of the host’s beat locations?