csound-expression-3.0.1: library to make electronic music

Safe HaskellNone

Csound.SigSpace

Synopsis

Documentation

class Num a => SigSpace a whereSource

A class for easy way to process the outputs of the instruments.

Methods

mapSig :: (Sig -> Sig) -> a -> aSource

bindSig :: (Sig -> SE Sig) -> a -> SE aSource

mul :: SigSpace a => Sig -> a -> aSource

Scaling the sound.

cfd :: SigSpace a => Sig -> a -> a -> aSource

Crossfade.

 cfd coeff sig1 sig2

If coeff equals 0 then we get the first signal and if it equals 1 we get the second signal.

cfds :: SigSpace a => [Sig] -> [a] -> aSource

Generic crossfade for n coefficients and n+1 signals.

 cfds coeffs sigs

cfdSpec :: Sig -> Spec -> Spec -> SpecSource

Spectral crossfade.

cfdsSpec :: [Sig] -> [Spec] -> SpecSource

Generic spectral crossfade.

wsum :: SigSpace a => [(Sig, a)] -> aSource

Weighted sum.