class Orange::Envelopes::Adsr

Overview

Attack, Decay, Sustain, Release https://en.wikipedia.org/wiki/Envelope_(music)

Defined in:

orange/envelopes/adsr.cr

Constructors

Instance Method Summary

Instance methods inherited from class Orange::Envelopes::Envelope

amplitude_multiplier(second, duration) amplitude_multiplier

Constructor Detail

def self.new(*, attack_amplitude : Float64 = 1.0, attack_time : Float64 = 0.0, decay_time : Float64 = 0.0, release_time : Float64 = 0.0, sustain_amplitude : Float64 = 1.0) #

[View source]

Instance Method Detail

def amplitude_multiplier(second, duration) #

[View source]
def attack_amplitude : Float64 #

[View source]
def attack_amplitude=(attack_amplitude : Float64) #

[View source]
def attack_time : Float64 #

[View source]
def attack_time=(attack_time : Float64) #

[View source]
def decay_time : Float64 #

[View source]
def decay_time=(decay_time : Float64) #

[View source]
def release_time : Float64 #

[View source]
def release_time=(release_time : Float64) #

[View source]
def sustain_amplitude : Float64 #

[View source]
def sustain_amplitude=(sustain_amplitude : Float64) #

[View source]