Forums > MaxMSP

asr envelope patch


Aug 08 2009 | 10:48 pm

Here’s a fancy envelope generator using multislider. You can draw a squiggle in the middle of the slider and it automatically ramps to and from it according to the start and end points. The ramp goes to the sustain point when you have the toggle on. When the toggle is released, the output jumps to the sustain point if it didn’t get there yet. I’d really appreciate suggestions for changes to it.

— Pasted Max Patch, click to expand. —
Aug 08 2009 | 11:17 pm

I was just thinking and remembered that the sample rate needs to be 44.1 for the curve smoothing to work.


kp*
Aug 10 2009 | 4:15 am

That is great, really slick (wish it worked at other sampling rates though). One problem I keep getting "multislider Slider 0 Out of Range." when I run this patch.

Aug 10 2009 | 5:18 pm

It works with any samplerate now, as long as you set the SR before you load the patch. as for the error message. . . It’s because of something inside of the subpatcher called [ramp_to], but it’s just too swampy in there to figure out. some day I’ll re-do it so it makes sense.

— Pasted Max Patch, click to expand. —

kp*
Aug 10 2009 | 6:28 pm

That is slick. dang.

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

Forums > MaxMSP