I'm in the first stages of building a granular synth in MSP. I am currently having an issue in which changes in grain duration, either automatically via stochastic duration jitter or manually, often result in changes in pitch.
I believe this may be happening because while the shot~ external does not allow itself to be interrupted by a trigger while it is active, it does respond to changes in Length of Ramp while active.
So, I'm trying to find a way to gate the input to a sah~. Doing this by using the shot~ "busy state" output hasn't been successful.
I'm attaching the patch. It uses the shot~ and random~ externals.
redonegrain~ is first and is used as a poly~ in the second patch.
Thanks for any insight.