mdct.slow.transforms module¶
Module for calculating DCT type 4 using pure Python
Warning
These core transforms will produce aliasing when used without overlap.
Please use mdct
unless you know what this means.
-
mdct.slow.transforms.
mdct
(x, odd=True)¶ Calculate modified discrete cosine transform of input signal in an inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
imdct
(X, odd=True)¶ Calculate inverse modified discrete cosine transform of input signal in an inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
mdst
(x, odd=True)¶ Calculate modified discrete sine transform of input signal in an inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
imdst
(X, odd=True)¶ Calculate inverse modified discrete sine transform of input signal in an inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
cmdct
(x, odd=True)¶ Calculate complex modified discrete cosine transform of input inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
icmdct
(X, odd=True)¶ Calculate inverse complex modified discrete cosine transform of input signal in an inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
mclt
(x, odd=True)¶ Calculate complex modified discrete cosine transform of input inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like
-
mdct.slow.transforms.
imclt
(X, odd=True)¶ Calculate inverse complex modified discrete cosine transform of input signal in an inefficient pure-Python method.
Use only for testing.
Parameters: - X (array_like) – The input signal
- odd (boolean, optional) – Switch to oddly stacked transform. Defaults to
True
.
Returns: out – The output signal
Return type: array_like