Click at the beginning of a exponential swept sinusoid

btone's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi, I'm working on making an exponential sine sweep (like the patch below) to measure impulse responses. However, when I start it I have an audible 'click' or discontinuity at the beginning of every sweep. I'd rather not introduce any enveloping if possible. My thought was that since cycle~ uses a cosine function, if I pre-set the phase to 0.75 it should make it into a sine and start at 0. But it's still clicking when I start a new sweep. Any thoughts?

Christopher Dobrian's icon

In your case, you could drive a 0 Hz cycle~ with a phasor~ connected to cycle~'s phase inlet, or you could restart MSP before each sweep.

btone's icon

Thanks, that's very helpful! Restarting MSP seems overly-arduous, so I'll probably go with the phasor implementation.