Function, line~ and sustain points
Hi there,
I'm working on building an instrument that uses function objects embedded in a poly~ for enveloping. I'm running into an issue with using sustain points, however. I have my function object connected to a line~ object. When the function object receives a bang, it unmutes the poly~ instance and sends its points out to a line~ object for enveloping. When the line~ finishes the envelope it mutes the poly~ instance.
The problem occurs when I introduce sustain points into the function envelope. The line~ object treats the sustain points as end points, and so when line~ receives a sustain point, it mutes the poly~ instance.
Any thoughts on working around this?
something like this might work
Max Patch
Copy patch and select New From Clipboard in Max.