line~ into *~ causes clicks

Jun 2, 2009 at 12:19am

line~ into *~ causes clicks

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

Thanks,Mike.

#44202
Jun 2, 2009 at 12:49am

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.

lh

#158888
Jun 2, 2009 at 11:57am

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.

#158889
Jun 2, 2009 at 2:00pm

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 [*~].

-110

#158890
Jun 2, 2009 at 2:05pm

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.

Thanks,Mike.

– Pasted Max Patch, click to expand. –
#158891
Jun 2, 2009 at 5:32pm

is this what you need?

– Pasted Max Patch, click to expand. –
#158892
Jun 2, 2009 at 6:35pm

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

#158893

You must be logged in to reply to this topic.