Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How to make an ADSR?

$
0
0

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.

  1. Midi value comes in. (0-127)
  2. ADSR envelopes (mapped to 0-1)
  3. ADSR value is used in several parts of the sketch.

How would you go about this?

Best, hjesper


Viewing all articles
Browse latest Browse all 2896

Trending Articles