csound-expression-4.2.0: library to make electronic music

Safe HaskellNone
LanguageHaskell98

Csound.Air.Misc

Contents

Description

Patterns

Synopsis

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 wet
  • effect - means to wet the signal
  • asig -- processed signal

once :: Tab -> Sig Source

Reads table once during the note length.

onceBy :: D -> Tab -> Sig Source

Reads table once during a given period of time.

several :: Tab -> Sig -> Sig Source

Reads table several times during the note length.

fromMono :: Sig -> (Sig, Sig) Source

Doubles the mono signal to get the stereo signal.

List functions

odds :: [a] -> [a] Source

Selects odd elements from the list.

evens :: [a] -> [a] Source

Selects even elements from the list.