Forums > Gen

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

January 18, 2014 | 2: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.


January 19, 2014 | 9:21 am

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)


January 19, 2014 | 9:44 am

it seems to be easier to do this outside gen~.


January 19, 2014 | 9:46 am

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.


January 22, 2014 | 8:43 pm

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.


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