Generally, in music, things happen in musical time, not sample time. Let’s say I have this delay plugin inside my AudioProcessorGraph. I decide that the delay has to kick-in after one bar, so I start the playback and, 1 bar after I add this delay to the AudioProcessorGraph.
The problem is it’s impossible to do that, because we have to do this inside the audio callback (which is the only reliable and accurate source of time) which works with samples.
If this “1 bar” time means, 1 sample buffer and a half, I would have to add the node DURING the process block of the audio processor graph.
How do you guys generally handle this problem ?