Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synthesizer.Modifiers.Envelopes
Synopsis
- type Step = Double
- type AttackLength = Double
- type DecayLength = Double
- type SustainLevel = Double
- type ReleaseLength = Double
- type TotalLength = Length
- data Envelope = Envelope {}
- applyEnvelope :: Envelope -> SoundEvent -> SoundEvent
- type SamplingRateConverted = Double
- getAttackSteps :: AttackLength -> SamplingRateConverted -> [Step]
- getDecaySteps :: DecayLength -> SustainLevel -> SamplingRateConverted -> [Step]
- getSustainSteps :: SustainLevel -> TotalLength -> AttackLength -> DecayLength -> SamplingRateConverted -> [Step]
- getReleaseSteps :: SustainLevel -> ReleaseLength -> SamplingRateConverted -> [Step]
Documentation
type AttackLength = Double Source #
type DecayLength = Double Source #
type SustainLevel = Double Source #
type ReleaseLength = Double Source #
type TotalLength = Length Source #
Constructors
Envelope | |
Fields
|
applyEnvelope :: Envelope -> SoundEvent -> SoundEvent Source #
Apply an envelope to a SoundEvent. This creates a new SoundEvent with changed properties
type SamplingRateConverted = Double Source #
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