Forums > MaxMSP

clicks occur when changing phase of rate


FP
January 7, 2012 | 4:01 pm

hello,

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.

– Pasted Max Patch, click to expand. –

January 7, 2012 | 4:20 pm

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


January 7, 2012 | 4:32 pm

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:

– Pasted Max Patch, click to expand. –

Sorry not to be more help
Brendan



FP
January 7, 2012 | 4:33 pm

yes I tried already the sah solution without success :

– Pasted Max Patch, click to expand. –

January 7, 2012 | 4:59 pm

previous post edited



FP
January 7, 2012 | 5:27 pm

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.

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

– Pasted Max Patch, click to expand. –

January 7, 2012 | 7:17 pm

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


January 7, 2012 | 7:42 pm

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.

– Pasted Max Patch, click to expand. –


FP
January 7, 2012 | 8:18 pm

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



FP
January 7, 2012 | 9:27 pm

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

– Pasted Max Patch, click to expand. –

if somebody have a better solution, please post it.


January 8, 2012 | 3:00 am

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



FP
January 8, 2012 | 10:01 am

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.


January 8, 2012 | 11:17 am

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
January 8, 2012 | 1:42 pm

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. :-)


January 8, 2012 | 2:25 pm

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:

http://www.youtube.com/watch?v=vbbhGV1PkY8

Brendan


January 8, 2012 | 5:49 pm

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
January 10, 2012 | 9:57 am

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
January 10, 2012 | 4:12 pm

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


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