I am building a plugin that is basically a gate that cuts according to time. So if you set the speed to 2 for example, the audio will cut from max volume to min volume twice a bar. I have already coded a bug free GUI that works fine.
What is the best way to work out what position in the bar you are in and hence when to close the gate and when to open the gate.
My idea was to use the ppqPosition function within the processBlock method , but will ppq reset to 0 every time the host is paused and the played? If so how do I get round this? Also any other ideas?
Thanks for any help!