class Haematite::VolumeEnvelope

Overview

Represents an DADSR envelope for volume/amplification use.

Defined in:

haematite/volumeenvelope.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(synth : Synthesizer) #

Creates a new VolumeEnvelope instance.


Instance Method Detail

def priority : Float64 #

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 VolumeEnvelope for an instrument.


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

Starts a VolumeEnvelope for an instrument.


def value : Float64 #

Returns the current envelope value.