Class Env

java.lang.Object
processing.sound.Env
Record Components:
parent - PApplet: typically use "this"

public class Env extends Object
This is an ASR (Attack Sustain Release) Envelope Generator.
  • Constructor Details

  • Method Details

    • play

      public void play(SoundObject input, float attackTime, float sustainTime, float sustainLevel, float releaseTime)
      Triggers the envelope.
      Parameters:
      input - Input sound source
      attackTime - Attack time value as a float.
      sustainTime - Sustain time value as a float.
      sustainLevel - Sustain level value as a float. (as fraction of the input amplitude)
      releaseTime - Release time value as a float.