class Haematite::ModulationEnvelope

Overview

Represents an DADSR envelope for modulation use.

Defined in:

haematite/modulationenvelope.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(synth : Synthesizer) #

Creates a new ModulationEnvelope instance.


Instance Method Detail

def process : Bool #

"Runs" the envelope.


def release #

Advances the envelope to the release stage.


def start(delay : Float64, attack : Float64, hold : Float64, decay : Float64, sustain : Float64, release : Float64) #

Starts the envelope.


def start(region : InstrumentRegion, key : Int32, velocity : Int32) #

Starts a ModulationEnvelope for an instrument.


def start(region : RegionPair, key : Int32, velocity : Int32) #

Starts a ModulationEnvelope for an instrument.


def value : Float64 #

Returns the current envelope value.