Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- easeInOut :: Int -> Sound d Pulse -> Sound d Pulse
- repeatSound :: Int -> Sound T Pulse -> Sound T Pulse
- simpleReverb :: Duration -> Sound T Pulse -> Sound T Pulse
- data Envelope = Envelope {}
- applyEnvelope :: Envelope -> Sound T Pulse -> Sound T Pulse
- harmonic :: (Hz -> Sound I Pulse) -> Hz -> Sound I Pulse
Documentation
easeInOut :: Int -> Sound d Pulse -> Sound d Pulse Source #
Eases the volume of the sound. The given Int
controls the strength of the easing.
repeatSound :: Int -> Sound T Pulse -> Sound T Pulse Source #
Repeats a sound such that:
repeatSound 3 sound = sound >>> sound >>> sound
simpleReverb :: Duration -> Sound T Pulse -> Sound T Pulse Source #
Plays the sound multiple times to get a simple reverb effect. The duration specifies the length of the reverb.
ADSR envelope which specifies how the volume of a sound should behave over time