Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class SigSpace a where
- class SigSpace a => BindSig a where
- mul :: SigSpace a => Sig -> a -> a
- mul' :: BindSig a => SE Sig -> a -> SE a
- on :: SigSpace a => Sig -> Sig -> a -> a
- uon :: SigSpace a => Sig -> Sig -> a -> a
- class SigSpace b => At a b c where
- class (SigSpace b, At a b c) => MixAt a b c where
- cfd :: (Num a, SigSpace a) => Sig -> a -> a -> a
- genCfds :: a -> (Sig -> a -> a -> a) -> [Sig] -> [a] -> a
- cfd4 :: (Num a, SigSpace a) => Sig -> Sig -> a -> a -> a -> a -> a
- cfds :: (Num a, SigSpace a) => [Sig] -> [a] -> a
- class SigSpace2 a where
- class SigSpace2 a => BindSig2 a where
- mul2 :: SigSpace2 a => Sig2 -> a -> a
- mul2' :: BindSig2 a => SE Sig2 -> a -> SE a
Documentation
class SigSpace a where Source #
A class for easy way to process the outputs of the instruments.
SigSpace Sig Source # | |
SigSpace a => SigSpace (SE a) Source # | |
(SigSpace a1, SigSpace a2) => SigSpace (a1, a2) Source # | |
(SigSpace a1, SigSpace a2, SigSpace a3) => SigSpace (a1, a2, a3) Source # | |
(SigSpace a1, SigSpace a2, SigSpace a3, SigSpace a4) => SigSpace (a1, a2, a3, a4) Source # | |
(SigSpace a1, SigSpace a2, SigSpace a3, SigSpace a4, SigSpace a5) => SigSpace (a1, a2, a3, a4, a5) Source # | |
(SigSpace a1, SigSpace a2, SigSpace a3, SigSpace a4, SigSpace a5, SigSpace a6) => SigSpace (a1, a2, a3, a4, a5, a6) Source # | |
(SigSpace a1, SigSpace a2, SigSpace a3, SigSpace a4, SigSpace a5, SigSpace a6, SigSpace a7) => SigSpace (a1, a2, a3, a4, a5, a6, a7) Source # | |
(SigSpace a1, SigSpace a2, SigSpace a3, SigSpace a4, SigSpace a5, SigSpace a6, SigSpace a7, SigSpace a8) => SigSpace (a1, a2, a3, a4, a5, a6, a7, a8) Source # | |
class SigSpace a => BindSig a where Source #
A class for easy way to process the outputs of the instruments.
BindSig Sig Source # | |
BindSig a => BindSig (SE a) Source # | |
(BindSig a1, BindSig a2) => BindSig (a1, a2) Source # | |
(BindSig a1, BindSig a2, BindSig a3) => BindSig (a1, a2, a3) Source # | |
(BindSig a1, BindSig a2, BindSig a3, BindSig a4) => BindSig (a1, a2, a3, a4) Source # | |
(BindSig a1, BindSig a2, BindSig a3, BindSig a4, BindSig a5) => BindSig (a1, a2, a3, a4, a5) Source # | |
(BindSig a1, BindSig a2, BindSig a3, BindSig a4, BindSig a5, BindSig a6) => BindSig (a1, a2, a3, a4, a5, a6) Source # | |
(BindSig a1, BindSig a2, BindSig a3, BindSig a4, BindSig a5, BindSig a6, BindSig a7) => BindSig (a1, a2, a3, a4, a5, a6, a7) Source # | |
(BindSig a1, BindSig a2, BindSig a3, BindSig a4, BindSig a5, BindSig a6, BindSig a7, BindSig a8) => BindSig (a1, a2, a3, a4, a5, a6, a7, a8) Source # | |
on :: SigSpace a => Sig -> Sig -> a -> a Source #
Rescaling of the bipolar signal (-1, 1) -> (a, b)
on a b biSig
uon :: SigSpace a => Sig -> Sig -> a -> a Source #
Rescaling of the unipolar signal (0, 1) -> (a, b)
on a b uniSig
class SigSpace b => At a b c where Source #
At Sig2 Sig2 Sig2 Source # | |
At Sig2 Sig2 Sig Source # | |
At Sig Sig2 Sig2 Source # | |
At Sig Sig2 Sig Source # | |
SigSpace a => At Sig Sig a Source # | |
At Sig2 Sig2 (SE Sig2) Source # | |
At Sig2 Sig2 (SE Sig) Source # | |
At Sig Sig2 (SE Sig2) Source # | |
At Sig Sig2 (SE Sig) Source # | |
At Sig2 (SE Sig2) Sig2 Source # | |
At Sig2 (SE Sig2) Sig Source # | |
At Sig (SE Sig) Sig4 Source # | |
At Sig (SE Sig) Sig3 Source # | |
At Sig (SE Sig) Sig2 Source # | |
At Sig (SE Sig) Sig Source # | |
At Sig2 (SE Sig2) (SE Sig2) Source # | |
At Sig2 (SE Sig2) (SE Sig) Source # | |
At Sig (SE Sig) (SE Sig4) Source # | |
At Sig (SE Sig) (SE Sig3) Source # | |
At Sig (SE Sig) (SE Sig2) Source # | |
At Sig (SE Sig) (SE Sig) Source # | |
class (SigSpace b, At a b c) => MixAt a b c where Source #
It applies an effect and mixes the processed signal with original one.
The first argument is for proportion of drywet (originalprocessed).
It's like at
but it allows to balance processed signal with original one.
MixAt Sig2 Sig2 Sig2 Source # | |
MixAt Sig2 Sig2 Sig Source # | |
MixAt Sig Sig2 Sig2 Source # | |
MixAt Sig Sig2 Sig Source # | |
SigSpace a => MixAt Sig Sig a Source # | |
MixAt Sig2 Sig2 (SE Sig2) Source # | |
MixAt Sig2 Sig2 (SE Sig) Source # | |
MixAt Sig Sig2 (SE Sig2) Source # | |
MixAt Sig Sig2 (SE Sig) Source # | |
MixAt Sig2 (SE Sig2) Sig2 Source # | |
MixAt Sig2 (SE Sig2) Sig Source # | |
MixAt Sig (SE Sig) Sig4 Source # | |
MixAt Sig (SE Sig) Sig3 Source # | |
MixAt Sig (SE Sig) Sig2 Source # | |
MixAt Sig (SE Sig) Sig Source # | |
MixAt Sig2 (SE Sig2) (SE Sig2) Source # | |
MixAt Sig2 (SE Sig2) (SE Sig) Source # | |
MixAt Sig (SE Sig) (SE Sig4) Source # | |
MixAt Sig (SE Sig) (SE Sig3) Source # | |
MixAt Sig (SE Sig) (SE Sig2) Source # | |
MixAt Sig (SE Sig) (SE Sig) Source # | |
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
Stereo sig-space
class SigSpace2 a where Source #
A class for easy way to process the outputs of the instruments.
SigSpace2 Sig Source # | |
SigSpace2 (SE (Sig, Sig)) Source # | |
SigSpace2 (SE (Sig, Sig, Sig)) Source # | |
SigSpace2 (SE (Sig, Sig, Sig, Sig)) Source # | |
SigSpace2 (SE Sig) Source # | |
SigSpace2 (Sig8, Sig8) Source # | |
SigSpace2 (Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig) Source # | |
SigSpace2 (Sig2, Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig, Sig) Source # | |
SigSpace2 (Sig8, Sig8, Sig8, Sig8) Source # | |
SigSpace2 (Sig2, Sig2, Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig, Sig, Sig) Source # | |
SigSpace2 (Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig, Sig, Sig, Sig) Source # | |
SigSpace2 (Sig2, Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig, Sig, Sig, Sig, Sig) Source # | |
SigSpace2 (Sig2, Sig2, Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig, Sig, Sig, Sig, Sig, Sig) Source # | |
SigSpace2 (Sig2, Sig2, Sig2, Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
SigSpace2 (Sig, Sig, Sig, Sig, Sig, Sig, Sig, Sig) Source # | |
class SigSpace2 a => BindSig2 a where Source #
A class for easy way to process the outputs of the instruments.
BindSig2 Sig Source # | |
BindSig2 (SE (Sig, Sig)) Source # | |
BindSig2 (SE (Sig, Sig, Sig)) Source # | |
BindSig2 (SE (Sig, Sig, Sig, Sig)) Source # | |
BindSig2 (SE Sig) Source # | |
BindSig2 (Sig8, Sig8) Source # | |
BindSig2 (Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig) Source # | |
BindSig2 (Sig2, Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig, Sig) Source # | |
BindSig2 (Sig8, Sig8, Sig8, Sig8) Source # | |
BindSig2 (Sig2, Sig2, Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig, Sig, Sig) Source # | |
BindSig2 (Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig, Sig, Sig, Sig) Source # | |
BindSig2 (Sig2, Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig, Sig, Sig, Sig, Sig) Source # | |
BindSig2 (Sig2, Sig2, Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig, Sig, Sig, Sig, Sig, Sig) Source # | |
BindSig2 (Sig2, Sig2, Sig2, Sig2, Sig2, Sig2, Sig2, Sig2) Source # | |
BindSig2 (Sig, Sig, Sig, Sig, Sig, Sig, Sig, Sig) Source # | |
mul2' :: BindSig2 a => SE Sig2 -> a -> SE a Source #
Scaling the sound with effectful pair of signals.
Orphan instances
Fractional (SE (Sig, Sig)) Source # | |
Fractional (SE (Sig, Sig, Sig)) Source # | |
Fractional (SE (Sig, Sig, Sig, Sig)) Source # | |
Fractional (SE Sig) Source # | |
Num (SE (Sig, Sig)) Source # | |
Num (SE (Sig, Sig, Sig)) Source # | |
Num (SE (Sig, Sig, Sig, Sig)) Source # | |
Num (SE Sig) Source # | |
Fractional (a -> (Sig, Sig, Sig, Sig)) Source # | |
Fractional (a -> (Sig, Sig, Sig)) Source # | |
Fractional (a -> (Sig, Sig)) Source # | |
Fractional (a -> Sig) Source # | |
Fractional (a -> SE (Sig, Sig, Sig, Sig)) Source # | |
Fractional (a -> SE (Sig, Sig, Sig)) Source # | |
Fractional (a -> SE (Sig, Sig)) Source # | |
Fractional (a -> SE Sig) Source # | |
Num (a -> SE (Sig, Sig, Sig, Sig)) Source # | |
Num (a -> SE (Sig, Sig, Sig)) Source # | |
Num (a -> SE (Sig, Sig)) Source # | |
Num (a -> SE Sig) Source # | |
Num (a -> (Sig, Sig, Sig, Sig)) Source # | |
Num (a -> (Sig, Sig, Sig)) Source # | |
Num (a -> (Sig, Sig)) Source # | |
Num (a -> Sig) Source # | |