Skip to content

Commit 3b71eca

Browse files
feat: v0.0.15
1 parent 4c48dce commit 3b71eca

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

audio_diffusion_pytorch/ddsp.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def center_pad_next_pow_2(x: Tensor) -> Tensor:
2929

3030
def get_qmf_bank(h: Tensor, nun_bands: int) -> Tensor:
3131
"""
32-
Modulates an input protoype filter into a bank of cosine modulated filters
33-
h: prototype filter
34-
nun_bands: number of sub-bands
32+
Modulates an input protoype filter h into a bank of cosine modulated filters
3533
"""
3634
k = torch.arange(nun_bands).reshape(-1, 1)
3735
N = h.shape[-1]
@@ -131,7 +129,7 @@ def amp_to_impulse_response(amp: Tensor, target_size: int) -> Tensor:
131129

132130
def fft_convolve(signal: Tensor, kernel: Tensor) -> Tensor:
133131
"""
134-
convolves signal by kernel on the last dimension
132+
Convolves signal by kernel on the last dimension
135133
"""
136134
signal = F.pad(signal, (0, signal.shape[-1]))
137135
kernel = F.pad(kernel, (kernel.shape[-1], 0))
@@ -156,7 +154,6 @@ def __init__(self, attenuation: float, num_bands: int):
156154
h = get_prototype(attenuation, num_bands)
157155
hk = get_qmf_bank(torch.from_numpy(h).float(), num_bands)
158156
hk = center_pad_next_pow_2(hk)
159-
print(hk.shape)
160157
self.register_buffer("hk", hk)
161158

162159
def forward(self, x):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name="audio-diffusion-pytorch",
55
packages=find_packages(exclude=[]),
6-
version="0.0.14",
6+
version="0.0.15",
77
license="MIT",
88
description="Audio Diffusion - PyTorch",
99
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)