avoiding clicks in looped sine waves

evanlivingston's icon

I'm getting synchronization errors (clicks at the beginning of a loop) when trying to loop sine waves at arbitrary intervals (naturally). But I cannot think of a way to solve this problem other than setting the duration of a loop to perfectly fit the sine waves.

Max Patch
Copy patch and select New From Clipboard in Max.

Any ideas?

Christopher Dobrian's icon

I know this isn't an answer to your question, but you might want to ask yourself why you're wanting to record and loop sine waves, since that's pretty much what cycle~ provides already.

Roman Thilenius's icon

for sinewaves using a lowpassfilter which fits to the frequency
of the sinewave seems to be the perfect solution for loop
interpolation.

-110