More on clickless looping(sorry!)

Hi folks first off sorry to bring this topic up again I know there is loads in the archive but I’ve searched for days and haven’t successfully found a solution to this so maybe one of the gurus can tackle it or advise us lesser beings on how to go about solving it.

I HAVE to use groove~ and waveform~ to do some looping but changing the loop points gives clicks. I’ve smoothed the loop with grooveduck~ already and am using snap to zero on the waveform~ and only sending new loop points when I’m finished selecting in waveform~. I’ve meditated on using poly~, a second groove~ or a ramp at the signal driven loop start point.

I’ve included a patch for you all to have a look at. Loopers may find it fun but when reselecting loop points of tones it clicks. Any suggestions/help graciously accepted. I know there are quite a few people experiencing this problem so please help if you can.

ps thanks to anyone who contributed code to this patch already. Most notably the waveform functions.Simple but nice.

— Pasted Max Patch, click to expand. —

Copy all of the following text. Then, in Max, select New From Clipboard.

Raja, do you think you could post a solution with play~ and wave~.
I have been creating a poly~ synth with groove, much like the sampler of dx1200. I’v been through the tutorials, but it is not the first time I’v picked apart your code and understood it much better.

Wouldn’t it work to simply route the output through a low-pass filter with the filter frequency set above the limit of human hearing, and at any point that you’re afraid of producing a click, temporarily sweep the filter frequency down low enough to filter out click-like sounds A click results not just from a possible discontinuity in the waveform, but from a discontinuity in the waveform’s rate of change. An LPF would smooth that out.