Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- time :: Sound I Time
- progress :: Sound I Progress
- sampleIndex :: Sound I Int
- constant :: a -> Sound I a
- silence :: Sound I Pulse
- iterateSound :: (a -> a) -> a -> Sound I a
- iterateSoundPulse :: (Pulse -> Pulse) -> Pulse -> Sound I Pulse
- unfoldlSound :: (s -> (s, a)) -> s -> Sound I a
- unfoldlSoundPulse :: (s -> (s, Pulse)) -> s -> Sound I Pulse
- unfoldrSound :: (s -> (a, s)) -> s -> Sound I a
- unfoldrSoundPulse :: (s -> (Pulse, s)) -> s -> Sound I Pulse
- iUnfoldlSound :: (Int -> s -> (s, a)) -> s -> Sound I a
- iUnfoldlSoundPulse :: (Int -> s -> (s, Pulse)) -> s -> Sound I Pulse
- iUnfoldrSound :: (s -> Int -> (a, s)) -> s -> Sound I a
- iUnfoldrSoundPulse :: (s -> Int -> (Pulse, s)) -> s -> Sound I Pulse
Basic sounds
Get the time for each sample which can be used for sinus wave calculations (e.g. sineWave
)
Iterating
iterateSound :: (a -> a) -> a -> Sound I a Source #
Iterate over the samples to create the sound.
Unfolding
unfoldlSound :: (s -> (s, a)) -> s -> Sound I a Source #
Unfold the samples of a sound from the start to the end
unfoldrSound :: (s -> (a, s)) -> s -> Sound I a Source #
Unfold the samples of a sound from the end to start
iUnfoldlSound :: (Int -> s -> (s, a)) -> s -> Sound I a Source #
Unfold the samples of a sound from the start to the end with the index starting at 0