Copyright | (c) Henning Thielemann 2009 |
---|---|

License | GPL |

Maintainer | synthesizer@henning-thielemann.de |

Stability | provisional |

Portability | requires multi-parameter type classes |

Safe Haskell | None |

Language | Haskell2010 |

Two allpasses that approach a relative phase difference of 90 degree over a large range of frequencies.

ToDo: More parameters for controling the affected frequency range.

- data Parameter a = Parameter {
- parameterCosine, parameterSine :: [Parameter a]

- polesCosine :: C a => [a]
- polesSine :: C a => [a]
- parameter :: C a => a -> Parameter a
- step2 :: (C a, C a v) => Parameter a -> v -> State [T v] (T v)
- modifierInit2 :: (C a, C a v) => Initialized [T v] [T v] (Parameter a) v (T v)
- runInit2 :: (C a, C a v) => [T v] -> Parameter a -> T v -> T (T v)
- run2 :: (C a, C a v) => Parameter a -> T v -> T (T v)
- cascade :: (C a, C a v) => [Parameter a] -> T v v
- causal2 :: (C a, C a v) => Parameter a -> T v (T v)
- causalComplex2 :: (C a, C a v) => Parameter a -> T (T v) (T v)
- causal :: (C a, C a v) => Parameter a -> T v (T v)
- causalComplex :: (C a, C a v) => Parameter a -> T (T v) (T v)
- lowpassStream :: (C a, C a, C a v) => a -> a -> T v -> T v
- lowpassMaintainPhase :: (C a, C a, C a v) => a -> a -> T v -> T v

# Documentation

polesCosine :: C a => [a] Source #

modifierInit2 :: (C a, C a v) => Initialized [T v] [T v] (Parameter a) v (T v) Source #

causal2 :: (C a, C a v) => Parameter a -> T v (T v) Source #

Although we get (almost) only the right-rotating part of the real input signal, the amplitude is as large as the input amplitude. That is, the amplitude actually doubled.

lowpassStream :: (C a, C a, C a v) => a -> a -> T v -> T v Source #

Approximation to perfect lowpass. However in the low frequencies the above filter is far away from being a perfect Hilbert filter, thus the cut is not straight as expected. This implementation is lazy, but shifts phases.

lowpassMaintainPhase :: (C a, C a, C a v) => a -> a -> T v -> T v Source #

If we could achieve lowpass filtering while maintaining phases, we could do approximate Whittaker interpolation. Here we try to do this by filtering forward and backward. However, this does not work since we move the spectrum between two Hilbert transforms and thus the phase distortions do not match. It does not even yield a fine lowpass, since reversing the signal does not reverse the spectrum.