Forums > MaxMSP

line~ into *~ causes clicks

Jun 02 2009 | 12:19 am

I am using the line~ object to control amplitude but when activated it causes clicks in the audio. Is there anyway round this?


Jun 02 2009 | 12:49 am

Try inserting a [pack 0 20] or "$1 20" before the [line~]. You need to specify a ramp time (in this case 20ms) or [line~] will have no effect.


Jun 02 2009 | 11:57 am

And the ramp can be smaller if necessary: the Max scheduler runs at 1ms intervals but MSP handles smaller intervals (it has to), so a $1 1 message box between your amplitude value and line~ can work too.

Jun 02 2009 | 2:00 pm

a little ramp up before the ramp down might not be
enough to get the click away totally. there will still
be a corner. try [slide~] or [onepole~] between [line~]
and [*~].


Jun 02 2009 | 2:05 pm

Thanks for the replies. I am using the line~ object in conjunction with breakpoint function so I can draw in the panning I want. Excuse my ignorance but I cant figure out how to combine pack with the breakpoint function successfully. I have include the patch below. Hope someone can help.


— Pasted Max Patch, click to expand. —

Jun 02 2009 | 5:32 pm

is this what you need?

— Pasted Max Patch, click to expand. —
Jun 02 2009 | 6:35 pm

Thanks for that pgk but I seem to get a jump in the audio mid way through. The click is more obvious when using a cycle object than the train object. I’m trying to achieve a completely smooth pan transition. Any ideas how to fix this?

Thanks for your help, Mike

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

Forums > MaxMSP