A R Envelope to remove clicks at beginning/end of file play

Feb 9, 2012 at 1:35pm

A R Envelope to remove clicks at beginning/end of file play

i have an sfplay~ object playing a looped audio file. i am trying to impliment some sort of attack and release envelope for the beginning and end of audio file play, in order to reduce the adible click, or at least reduce its prevelence

i was thinking of using trapezoid~ with attack and release values, but im not too sure how to hook it up… this is what i have soo far…

– Pasted Max Patch, click to expand. –

assistance would be greatly appreciated

Feb 9, 2012 at 3:01pm

here you go, a hack which uses the ms position outlet from [sfplay~]; [groove~] may be better suited to this, as it has an accurate sync outlet whose ramp equals 0. to 1. over the loop duration.

– Pasted Max Patch, click to expand. –


Feb 9, 2012 at 3:09pm

If it has to be sfplay~ and trapezoid~ then something like this?

– Pasted Max Patch, click to expand. –

Ha – beat me to it, Brendan!

Feb 9, 2012 at 3:29pm

thats great. thanks for the replies.

it doesnt have to be sfplay. i could do groove~ for now (until i get into multiple objects, playing large files, then i can migrage back over to sfplay~).

ill check out the groove~ object functionality discussed above.

thanks again

Feb 9, 2012 at 3:37pm


and because you took a little more time with yours, it is way WAY more elegant

[sfinfo~] doh!


Feb 9, 2012 at 4:11pm

sfplay~ and trapezoid~ made sense to me at the time; so it for sure doesnt have to be these two objects. would there be a more efficent way of doing this? im sure that is a farily openended question considering with max, you can probably go about a million different ways of doing this… im just thinking, if there are any suggestions that i could take that would assist me better, i am very-much-so open to any, and all.. i.e. grove~ over sfplay~ etc.

thanks again.


You must be logged in to reply to this topic.