Safe Haskell | None |
---|---|
Language | Haskell2010 |
Spectral functions
Synopsis
- toSpec :: Sig -> Spec
- fromSpec :: Spec -> Sig
- mapSpec :: (Spec -> Spec) -> Sig -> Sig
- scaleSpec :: Sig -> Sig -> Sig
- addSpec :: Sig -> Sig -> Sig
- scalePitch :: Sig -> Sig -> Sig
- data CrossSpec = CrossSpec {
- crossFft :: D
- crossHopSize :: D
- crossScale :: Sig
- crossPitch :: Sig
- crossMaxTracks :: D
- crossWinType :: D
- crossSearch :: Sig
- crossDepth :: Sig
- crossThresh :: Sig
- crossMinPoints :: Sig
- crossMaxGap :: Sig
- crossSpecFilter :: CrossSpec -> Sig2 -> Sig2 -> Sig2
- crossSpecVocoder :: CrossSpec -> Sig2 -> Sig2 -> Sig2
- crossSpecFilter1 :: CrossSpec -> Sig -> Sig -> Sig
- crossSpecVocoder1 :: CrossSpec -> Sig -> Sig -> Sig
Documentation
mapSpec :: (Spec -> Spec) -> Sig -> Sig Source #
Applies a transformation to the spectrum of the signal.
scaleSpec :: Sig -> Sig -> Sig Source #
Scales all frequencies. Usefull for transposition. For example, we can transpose a signal by the given amount of semitones:
scaleSpec (semitone 1) asig
Settings for cross filtering algorithm.
They are the defaults for opvodes: pvsifd
, tradsyn
, trcross
and partials
.
- Fft size degree -- it's the power of 2. The default is 12.
- Hop size degree -- it's the power of 2. The default is 9
- scale --amplitude scaling factor. default is 1
- pitch -- the pitch scaling factor. default is 1
maxTracks
-- max number of tracks in resynthesis (tradsyn) and analysis (partials).winType
-- O: Hamming, 1: Hanning (default)Search
-- search interval length. The default is 1.05Depth
-- depth of the effectThresh
-- analysis threshold. Tracks below ktresh*max_magnitude will be discarded (1 > ktresh >= 0).The default is 0.01MinPoints
-- minimum number of time points for a detected peak to make a track (1 is the minimum).MaxGap
-- maximum gap between time-points for track continuation (> 0). Tracks that have no continuation after kmaxgap will be discarded.
CrossSpec | |
|
crossSpecFilter :: CrossSpec -> Sig2 -> Sig2 -> Sig2 Source #
Filters the partials of the second signal with partials of the first signal.