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.
I was just thinking and remembered that the sample rate needs to be 44.1 for the curve smoothing to work.
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.
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.
That is slick. dang.