clicks occur when changing phase of rate

FP's icon

hello,

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

I'm looking for a way to avoid click when changing phase of rate.
what I want to achieve is to play a sample at the same time with many index (or play) in a [poly~] and changing phase in real time between them.
maybe there is another way to do it.
any help ?
thx.

brendan mccloskey's icon

Hi
I can't look at your patch just at the moment, but is there any use for [sah~] here?

Maybe I'll look at your patch later and discover this is a silly suggestion :(

Brendan

brendan mccloskey's icon

Yes
silly suggestion; i'll keep looking at this..........

sorry, I'm stumped.

Are you simply looking to dynamically shift the phase of the playback signal? This patch is from an old granulator of mine, and shifts playback startpoint linearly (unlike your phase-shift requirement), without clicks:

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

Sorry not to be more help
Brendan

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

yes I tried already the sah solution without success :

brendan mccloskey's icon

previous post edited

FP's icon

thx Brendan. it could be a good starting point except the enveloppe window is linked to the original phasor so cut the offseted sample before the end.

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

adapting your patch to my goal the problem appears to be the same...

brendan mccloskey's icon

would [trapezoid~ 0.05 0.95] work in place of the 'bell' window?

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

This isn't much better, but the clicks are only present when the phase changes, which is synchronized with the output. The problem is that when the phase actually changes you are going to get a click. Whether that's audible or not depends upon the size of the discontinuity.

FP's icon

ok, thx.
is there another method to change phase by a phasor~ (or something else moving) between 2 players without click ?

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

so I'll use the tapin vdb trick by emmanuel jourdan to achieve this for now.

if somebody have a better solution, please post it.

Chris Muir's icon

If you are going for a sort of granular thing, you can use many voices in poly~ set to a different phase.

FP's icon

yes, it's not exactly a granular thing but a poly-player with variable phase between layers.
but I think I will manage it just with a simple delay to play the beginning of loop. and maybe finally with groove delaying each startloop message.

Chris Muir's icon

I guess that what I was getting at is that if the phase is only going to change on a per-voice instance when a voice is started in poly~, there won't really be clicks. The clicks happen when changing the phase on a sounding "note."

FP's icon

yes you're absolutely right, it's what I'll do finally but I was testing the possibility to change offset during playing. I have to think again from scratch... if you have a good starting point, you're welcome. :-)

brendan mccloskey's icon

Hi fp
in a recent test-build for a sophisticated granulator, I tried to implement (purely for testing purposes) dynamic phase-shifting of an overlapping window - just to see if i could add more windows. Due perhaps in part to my meagre Max chops I encountered the issue Chris describes: changing phase in a 'busy' voice generated clicks; so I 'fixed' the phase offset at 0.5 and left it at that. While you aren't building a granulator, you might look here:

Brendan

Wetterberg's icon

Can't you simply add to the rate~ output with like a line~ and then %~ afterwards? That will let you slide around without clicks, I think.

FP's icon

héhé, thx, I tried already the line trick but in that case I have a pitch slide too. If i have to choose I prefer the click...

FP's icon

@brendan yep thx I'll try it asap in a poly~.