The .csd below works fine for me except for the fact that sample iterations do not maintain their initial pitch when a (random) pitch change is introduced. The pitch of ALL sounding iterations change. (Either this or the iteration stops - it’s a bit difficult to tell.)
I have adapted this example from Victor’s in the Csound manual, making only necessary changes that apply to my context. Note that the entire sample is the grain, and iterations follow regularly one after the other. My desired result (i.e., pitch remaining constant for the duration of an iteration) is the default behavior exhibited by grain2 and grain3. Is it possible to achieve it with syncgrain?
So, can anyone, especially Victor, suggest a remedy? I am not averse to using grain2 or grain3, but they seem to take me down a dark rabbit hole from which it is difficult to emerge (especially with such complex/abstruse examples).
All suggestions much appreciated.