I’m trying to create a delay line using an audio file read into a buffer. I’m doing this as a demo of what will eventually be a live delay line. However, whenever I try to play it back, it is at about a whole step higher, for no clear reason. This is the case with both DelayL/DelayC and Tap.
p = "filename";
b = Buffer.read(s, p);
{DelayC.ar(PlayBuf.ar(2, b.bufnum), 3, 0.5, 0.5)}.play;
{Tap.ar(b.bufnum, 2, 3)}.play;