Gen~ examples folder "7 segment envelope." How to make parameters realtime?

    Jan 18 2014 | 10:45 pm
    Included with the Gen~ extension in the examples folder is a patch called the "7 Stage Envelope." All the parameters are set in messages and have no individual control. How do I make each of the parameters react in realtime to number messages? For instance the SUSTAIN control should be able to float between values of 0-1 while it is active. I have a feeling it has something to do with the scale object. I could be wrong.
    Thank you in advance.

    • Jan 19 2014 | 5:21 pm
      Do you mean to control them with a signal, or just to control them?
      You can control them simply by sending a message in the form of parameterName value. (E.g. attack 150) You can use a flonum with a message box to do this. (Attack $1 in the message box)
    • Jan 19 2014 | 5:44 pm
      it seems to be easier to do this outside gen~.
    • Jan 19 2014 | 5:46 pm
      I need to do this inside Gen~ regardless of whats easier.
      Peter, your suggestion works for the attack but when the counter reaches the sustain phase I should be able to adjust the sustain and see it react in realtime. It only uses the next Sustain value on the next trigger cycle.
    • Jan 23 2014 | 4:43 am
      It's a factor of the sample and hold. I'm guessing you might try something involving latch instead. Would require a bit of special logic but should be doable.