haskell-synthesizer-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Synthesizer.Modifiers.Envelopes

Synopsis

Documentation

data Envelope Source #

Constructors

Envelope 

Fields

Instances

Instances details
Show Envelope Source # 
Instance details

Defined in Synthesizer.Modifiers.Envelopes

applyEnvelope :: Envelope -> SoundEvent -> SoundEvent Source #

Apply an envelope to a SoundEvent. This creates a new SoundEvent with changed properties

getAttackSteps :: AttackLength -> SamplingRateConverted -> [Step] Source #

Calculate the attack steps based on attack length

getDecaySteps :: DecayLength -> SustainLevel -> SamplingRateConverted -> [Step] Source #

Calculate the decay steps based on decay length

getSustainSteps :: SustainLevel -> TotalLength -> AttackLength -> DecayLength -> SamplingRateConverted -> [Step] Source #

Calculate the sustain steps based on sustain level

getReleaseSteps :: SustainLevel -> ReleaseLength -> SamplingRateConverted -> [Step] Source #

Calculate the release steps based on the release length and the sustain level