asr envelope patch

Aug 8, 2009 at 10:48pm

asr envelope patch

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. –
#45047
Aug 8, 2009 at 11:17pm

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

#162302
Aug 10, 2009 at 4:15am

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.

#162303
Aug 10, 2009 at 5:18pm

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. –
#162304
Aug 10, 2009 at 6:28pm

That is slick. dang.

#162305

You must be logged in to reply to this topic.