Hi,
As part of a bigger sketch, where some values are affected by incoming MIDI, I want to be able to make an ADSR (Attack, Decay, Sustain, Release) -envelope.
- Midi value comes in. (0-127)
- ADSR envelopes (mapped to 0-1)
- ADSR value is used in several parts of the sketch.
How would you go about this?
Best, hjesper