Forums > MaxMSP

More on clickless looping(sorry!)

August 29, 2009 | 2:02 pm

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. —

edit: grooveduck~ (save as stereoduck in filepath)

— Pasted Max Patch, click to expand. —

August 29, 2009 | 2:56 pm

there’s not stereo duck in your patch…
anyway it’s not made for groove but you can have a look at this for play~ :

— Pasted Max Patch, click to expand. —

and this for wave~

— Pasted Max Patch, click to expand. —

i hope it helps.
don’t forget to check wavefade-folder in the example patches.

August 29, 2009 | 3:26 pm

Thanks for your reply f I’ve just included grooveduck~ in original post.

I’d seen the play solution before and it doesn’t work for the bigger picture I have in mind and from quickly testing the wave example that doesn’t give smoothing when re-selecting loop points.

I already have smooth looping, its when I re-select the loop points while the file plays that I get the clicks.

Testing with wavefade also resulted in clicks when I change the start time while the file is playing..

August 31, 2009 | 12:14 pm

Exactly what I needed. Thank you Raja. Now to study exactly what you’ve done…

Thanks again

September 1, 2009 | 7:49 am

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.

Well, I understand if you dont have the time.


September 4, 2009 | 7:58 am

Wow, THANK YOU SO MUCH. THis was a lot of help. I’m diving in, call for backup!

September 10, 2009 | 3:52 am

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.

September 11, 2009 | 4:01 am

Oh, you’re right. I didn’t realize what you were doing was so computationally cheap.

Viewing 8 posts - 1 through 8 (of 8 total)

Forums > MaxMSP