I am having difficulty with the delay lines and despite interpolating the incoming values, there seems to be a bad click on the delay line when the phasor wraps, maybe im assuming similarities of some of the names of the pd and csound library but any help would be appreciated. I did look at this as well (might be a bad rabbit hole) but im wondering if pd’s phasor c code handles multiplying by zero on the audio thread and maybe i need to account for this:
You’ll need to apply envelopes to the delayed signal. Maybe you already are? I’ve not had my morning coffee yet, so I’m a little slow still!
FWIW, here is a pitch-shifter that also employs a single delay lines, with out of phase read/write pointers. I have probably over-simplified this but it does the trick. I don’t bother with this approach in Csound any more, as the PVS opcodes offers so much more control.