So I've been using some version of this patch (the main patch is gs.pd) for a while now for Granular Synthesis using audio files and it works well. I've adapted it here to take live input that continually refreshes (cf. the upper right of gs.pd), and it works, but sometimes there are random snaps in the sound. If I had to speculate as to what is causing this, I'd imagine it's the buffer changing in a part that is currently being read, but I'm not sure how to confirm this, or even what I'd do about it if I could. The heart of the synthesis is in grain-stream.pd, three of which are in [pd 3streams in the mid-lower-left of gs.pd. Any ideas? Maybe have it alternate reading into two buffers and have the grain-stream read only from the buffer that's currently not being written to? Sounds like that'd be tricky to coordinate timing-wise though.
-
Granular Synthesis with Live Input leads to Random Snaps/Spikes
-
So if I'd alternate between writing to two different tables there on the right at every beat of the [metro], I'd have to time a switch between tables on the left accordingly. I figure switching arrays suddenly would also lead to snaps, so some kind of cross-fade...? but how to time it....