Forums > MaxMSP

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

February 9, 2012 | 1:35 pm

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


February 9, 2012 | 3:01 pm

Hi
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. –

Brendan


February 9, 2012 | 3:09 pm

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

– Pasted Max Patch, click to expand. –

Ha – beat me to it, Brendan!


February 9, 2012 | 3:29 pm

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


February 9, 2012 | 3:37 pm

@roger

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

[sfinfo~] doh!

Brendan


February 9, 2012 | 4:11 pm

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.


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