Safe Haskell | None |
---|---|
Language | Haskell98 |
Patterns
- mean :: Fractional a => [a] -> a
- vibrate :: Sig -> Sig -> (Sig -> a) -> Sig -> a
- randomPitch :: Sig -> Sig -> (Sig -> a) -> Sig -> SE a
- chorusPitch :: Int -> Sig -> (Sig -> Sig) -> Sig -> Sig
- resons :: [(Sig, Sig)] -> Sig -> Sig
- resonsBy :: (cps -> bw -> Sig -> Sig) -> [(cps, bw)] -> Sig -> Sig
- modes :: [(Sig, Sig)] -> Sig -> Sig -> Sig
- dryWet :: Sig -> (Sig -> Sig) -> Sig -> Sig
- once :: Tab -> Sig
- onceBy :: D -> Tab -> Sig
- several :: Tab -> Sig -> Sig
- fromMono :: Sig -> (Sig, Sig)
- odds :: [a] -> [a]
- evens :: [a] -> [a]
- rndPan :: Sig -> SE Sig2
- rndPan2 :: Sig2 -> SE Sig2
- rndVol :: SigSpace a => (D, D) -> a -> SE a
- gaussVol :: SigSpace a => D -> a -> SE a
- writeHifi :: D -> String -> SE Sig2 -> IO ()
Documentation
mean :: Fractional a => [a] -> a Source
Mean value.
vibrate :: Sig -> Sig -> (Sig -> a) -> Sig -> a Source
Adds vibrato to the sound unit. Sound units is a function that takes in a frequency.
randomPitch :: Sig -> Sig -> (Sig -> a) -> Sig -> SE a Source
Adds a random vibrato to the sound unit. Sound units is a function that takes in a frequency.
chorusPitch :: Int -> Sig -> (Sig -> Sig) -> Sig -> Sig Source
Chorus takes a number of copies, chorus width and wave shape.
resons :: [(Sig, Sig)] -> Sig -> Sig Source
Applies a resonator to the signals. A resonator is a list of band pass filters. A list contains the parameters for the filters:
[(centerFrequency, bandWidth)]
resonsBy :: (cps -> bw -> Sig -> Sig) -> [(cps, bw)] -> Sig -> Sig Source
A resonator with user defined band pass filter. Warning: a filter takes in a center frequency, band width and the signal. The signal comes last (this order is not standard in the Csound but it's more convinient to use with Haskell).
modes :: [(Sig, Sig)] -> Sig -> Sig -> Sig Source
Chain of mass-spring-damping filters.
modes params baseCps exciter
- params - a list of pairs
(resonantFrequencyRatio, filterQuality)
baseCps
- base frequency of the resonator- exciter - an impulse that starts a resonator.
dryWet :: Sig -> (Sig -> Sig) -> Sig -> Sig Source
Mixes dry and wet signals.
dryWet ratio effect asig
ratio
- of dry signal to weteffect
- means to wet the signalasig
-- processed signal
List functions
Random functions
gaussVol :: SigSpace a => D -> a -> SE a Source
Random volume (with gauss distribution)
gaussVol radiusOfDistribution