Versions in this module Expand all Collapse all v0 v0.1.0 Jan 18, 2025 Changes in this version + type ADSR struct + AttackCurve easing.Easing + DecayCurve easing.Easing + ManualSustain bool + ReleaseCurve easing.Easing + func NewADSR(sampleRate uint) *ADSR + func (adsr *ADSR) GetNextSample() float64 + func (adsr *ADSR) Reset() + func (adsr *ADSR) SetAttackLength(attackMS uint) + func (adsr *ADSR) SetDecayLength(decayMS uint) + func (adsr *ADSR) SetReleaseLength(releaseMS uint) + func (adsr *ADSR) SetSustain(value float64) + func (adsr *ADSR) SetSustainLength(sustainMS uint) + func (adsr *ADSR) TriggerRelease() + func (adsr ADSR) GetSampleRate() uint + type ADSRPhase int + const Attack + const Decay + const Release + const Sustain + type FlatModulation struct + func NewFlatModulation(sampleRate uint) *FlatModulation + func (fm *FlatModulation) Reset() + func (fm FlatModulation) GetNextSample() float64 + func (fm FlatModulation) GetSampleRate() uint + type LFO struct + Deviation float64 + Generator generator.FunctionGenerator + func NewLFO(sampleRate uint) *LFO + func (lfo *LFO) Reset() + func (lfo LFO) GetNextSample() float64 + func (lfo LFO) GetSampleRate() uint