mdct.fast.transforms module¶
Module for calculating DCT type 4 using FFT and pre/post-twiddling
Warning
These core transforms will produce aliasing when used without overlap.
Please use mdct unless you know what this means.
-
mdct.fast.transforms.mdct(x, odd=True)¶ Calculate modified discrete cosine transform of input signal
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.fast.transforms.imdct(X, odd=True)¶ Calculate inverse modified discrete cosine transform of input signal
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.fast.transforms.mdst(x, odd=True)¶ Calculate modified discrete sine transform of input signal
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.fast.transforms.imdst(X, odd=True)¶ Calculate inverse modified discrete sine transform of input signal
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.fast.transforms.cmdct(x, odd=True)¶ Calculate complex MDCT/MCLT of input signal
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.fast.transforms.icmdct(X, odd=True)¶ Calculate inverse complex MDCT/MCLT of input signal
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.fast.transforms.mclt(x, odd=True)¶ Calculate complex MDCT/MCLT of input signal
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.fast.transforms.imclt(X, odd=True)¶ Calculate inverse complex MDCT/MCLT of input signal
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