class Haematite::ModulationEnvelope
- Haematite::ModulationEnvelope
- Reference
- Object
Overview
Represents an DADSR envelope for modulation use.
Defined in:
haematite/modulationenvelope.crConstructors
-
.new(synth : Synthesizer)
Creates a new
ModulationEnvelope
instance.
Instance Method Summary
-
#process : Bool
"Runs" the envelope.
-
#release
Advances the envelope to the release stage.
-
#start(delay : Float64, attack : Float64, hold : Float64, decay : Float64, sustain : Float64, release : Float64)
Starts the envelope.
-
#start(region : InstrumentRegion, key : Int32, velocity : Int32)
Starts a
ModulationEnvelope
for an instrument. -
#start(region : RegionPair, key : Int32, velocity : Int32)
Starts a
ModulationEnvelope
for an instrument. -
#value : Float64
Returns the current envelope value.
Constructor Detail
Instance Method Detail
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.