Safe Haskell | None |
---|---|
Language | Haskell98 |
- class SigSpace a where
- class SigSpace a => BindSig a where
- mul :: SigSpace a => Sig -> a -> a
- class SigSpace b => At a b c where
- bat :: At Sig a b => (Sig -> a) -> b -> AtOut Sig a b
- cfd :: (Num a, SigSpace a) => Sig -> a -> a -> a
- cfd4 :: (Num a, SigSpace a) => Sig -> Sig -> a -> a -> a -> a -> a
- cfds :: (Num a, SigSpace a) => [Sig] -> [a] -> a
- cfdSpec :: Sig -> Spec -> Spec -> Spec
- cfdSpec4 :: Sig -> Sig -> Spec -> Spec -> Spec -> Spec -> Spec
- cfdsSpec :: [Sig] -> [Spec] -> Spec
- wsum :: (Num a, SigSpace a) => [(Sig, a)] -> a
Documentation
A class for easy way to process the outputs of the instruments.
class SigSpace a => BindSig a where Source
A class for easy way to process the outputs of the instruments.
class SigSpace b => At a b c where Source
At Sig2 Sig2 Sig2 | |
At Sig2 Sig2 Sig | |
At Sig Sig2 Sig2 | |
At Sig Sig2 Sig | |
SigSpace a => At Sig Sig a | |
At Sig2 Sig2 a => At Sig2 Sig2 (Source a) | |
At Sig2 Sig2 (SE Sig2) | |
At Sig2 Sig2 (SE Sig) | |
At Sig Sig2 (SE Sig2) | |
At Sig Sig2 (SE Sig) | |
At Sig2 (SE Sig2) Sig2 | |
At Sig2 (SE Sig2) Sig | |
At Sig (SE Sig) Sig2 | |
At Sig (SE Sig) Sig3 | |
At Sig (SE Sig) Sig4 | |
At Sig (SE Sig) Sig | |
At Sig2 (SE Sig2) a => At Sig2 (SE Sig2) (Source a) | |
At Sig2 (SE Sig2) (SE Sig2) | |
At Sig2 (SE Sig2) (SE Sig) | |
At Sig (SE Sig) a => At Sig (SE Sig) (Source a) | |
At Sig (SE Sig) (SE Sig2) | |
At Sig (SE Sig) (SE Sig3) | |
At Sig (SE Sig) (SE Sig4) | |
At Sig (SE Sig) (SE Sig) |
cfd :: (Num a, SigSpace a) => Sig -> a -> a -> a Source
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.
cfd4 :: (Num a, SigSpace a) => Sig -> Sig -> a -> a -> a -> a -> a Source
Bilinear interpolation for four signals. The signals are placed in the corners of the unit square. The first two signals are the xy coordinates in the square.
cfd4 x y a b c d
- (0, 0) is for a
- (1, 0) is for b
- (1, 1) is for c
- (0, 1) is for d
cfds :: (Num a, SigSpace a) => [Sig] -> [a] -> a Source
Generic crossfade for n coefficients and n+1 signals.
cfds coeffs sigs