Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Kinyugo/torch_mdct
/ functions
Functions
9 in github.com/Kinyugo/torch_mdct
⨍
Functions
9
◇
Types & classes
2
↓ 2 callers
Function
create_window
Utility function to create a window tensor. Parameters ---------- win_length : int The length of the window. window_fn :
src/torch_mdct/torch_mdct.py:10
↓ 1 callers
Method
__init__
( self, win_length: int, window_fn: Callable[..., torch.Tensor] = vorbis, wind
src/torch_mdct/torch_mdct.py:68
↓ 1 callers
Function
imdct
Compute the inverse Modified Discrete Cosine Transform (iMDCT) of a spectrogram. Parameters ---------- spectrogram : torch.Tensor
src/torch_mdct/functional.py:81
↓ 1 callers
Function
mdct
Compute the Modified Discrete Cosine Transform (MDCT) of a waveform. Parameters ---------- waveform : torch.Tensor Input wav
src/torch_mdct/functional.py:8
Method
__init__
( self, win_length: int, window_fn: Callable[..., torch.Tensor] = vorbis, wind
src/torch_mdct/torch_mdct.py:135
Method
forward
Compute the MDCT of the input waveform. Parameters ---------- waveform : torch.Tensor Input waveform ten
src/torch_mdct/torch_mdct.py:86
Method
forward
Compute the iMDCT of the input spectrogram. Parameters ---------- spectrogram : torch.Tensor Input MDCT
src/torch_mdct/torch_mdct.py:155
Function
kaiser_bessel_derived
Generate a Kaiser-Bessel derived window. Parameters ---------- win_length : int The length of the window. beta : float,
src/torch_mdct/windows.py:4
Function
vorbis
Generate a Vorbis window. Parameters ---------- win_length : int The length of the window. dtype : torch.dtype, optional
src/torch_mdct/windows.py:42