flamo 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flamo/auxiliary/config/config.py +2 -1
- flamo/auxiliary/eq.py +2 -1
- flamo/auxiliary/reverb.py +1 -1
- flamo/optimize/loss.py +1 -0
- flamo/processor/dsp.py +18 -8
- {flamo-0.1.4.dist-info → flamo-0.1.5.dist-info}/METADATA +2 -1
- {flamo-0.1.4.dist-info → flamo-0.1.5.dist-info}/RECORD +9 -9
- {flamo-0.1.4.dist-info → flamo-0.1.5.dist-info}/WHEEL +0 -0
- {flamo-0.1.4.dist-info → flamo-0.1.5.dist-info}/licenses/LICENSE +0 -0
flamo/auxiliary/config/config.py
CHANGED
flamo/auxiliary/eq.py
CHANGED
|
@@ -86,7 +86,8 @@ def geq(
|
|
|
86
86
|
|
|
87
87
|
for band in range(num_bands):
|
|
88
88
|
if band == 0:
|
|
89
|
-
b = torch.
|
|
89
|
+
b = torch.zeros(3, device=device)
|
|
90
|
+
b[0] = db2mag(gain_db[band])
|
|
90
91
|
a = torch.tensor([1, 0, 0], device=device)
|
|
91
92
|
elif band == 1:
|
|
92
93
|
b, a = shelving_filter(
|
flamo/auxiliary/reverb.py
CHANGED
|
@@ -129,7 +129,7 @@ class HomogeneousFDN:
|
|
|
129
129
|
size=(self.N,),
|
|
130
130
|
max_len=delay_lines.max(),
|
|
131
131
|
nfft=self.config_dict.nfft,
|
|
132
|
-
isint=
|
|
132
|
+
isint=self.config_dict.is_delay_int,
|
|
133
133
|
requires_grad=self.config_dict.delays_grad,
|
|
134
134
|
alias_decay_db=self.config_dict.alias_decay_db,
|
|
135
135
|
device=self.config_dict.device,
|
flamo/optimize/loss.py
CHANGED
flamo/processor/dsp.py
CHANGED
|
@@ -2743,7 +2743,7 @@ class Delay(DSP):
|
|
|
2743
2743
|
"""
|
|
2744
2744
|
m = self.get_delays()
|
|
2745
2745
|
if self.isint:
|
|
2746
|
-
self.freq_response = lambda param: (self.gamma ** m(param)) * torch.exp(
|
|
2746
|
+
self.freq_response = lambda param: (self.gamma ** m(param).round()) * torch.exp(
|
|
2747
2747
|
-1j
|
|
2748
2748
|
* torch.einsum(
|
|
2749
2749
|
"fo, omn -> fmn",
|
|
@@ -2880,14 +2880,24 @@ class parallelDelay(Delay):
|
|
|
2880
2880
|
Computes the frequency response of the delay module.
|
|
2881
2881
|
"""
|
|
2882
2882
|
m = self.get_delays()
|
|
2883
|
-
self.
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2883
|
+
if self.isint:
|
|
2884
|
+
self.freq_response = lambda param: (self.gamma ** m(param).round()) * torch.exp(
|
|
2885
|
+
-1j
|
|
2886
|
+
* torch.einsum(
|
|
2887
|
+
"fo, on -> fn",
|
|
2888
|
+
self.omega,
|
|
2889
|
+
m(param).round().unsqueeze(0),
|
|
2890
|
+
)
|
|
2891
|
+
)
|
|
2892
|
+
else:
|
|
2893
|
+
self.freq_response = lambda param: (self.gamma ** m(param)) * torch.exp(
|
|
2894
|
+
-1j
|
|
2895
|
+
* torch.einsum(
|
|
2896
|
+
"fo, on -> fn",
|
|
2897
|
+
self.omega,
|
|
2898
|
+
m(param).unsqueeze(0),
|
|
2899
|
+
)
|
|
2889
2900
|
)
|
|
2890
|
-
)
|
|
2891
2901
|
|
|
2892
2902
|
def get_io(self):
|
|
2893
2903
|
r"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flamo
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: An Open-Source Library for Frequency-Domain Differentiable Audio Processing
|
|
5
5
|
Project-URL: Homepage, https://github.com/gdalsanto/flamo
|
|
6
6
|
Project-URL: Issues, https://github.com/gdalsanto/flamo/issues
|
|
@@ -38,6 +38,7 @@ Requires-Dist: numpy
|
|
|
38
38
|
Requires-Dist: pydantic
|
|
39
39
|
Requires-Dist: pyfar
|
|
40
40
|
Requires-Dist: pysoundfile
|
|
41
|
+
Requires-Dist: pyyaml
|
|
41
42
|
Requires-Dist: scipy
|
|
42
43
|
Requires-Dist: torch
|
|
43
44
|
Requires-Dist: torchaudio
|
|
@@ -2,22 +2,22 @@ flamo/__init__.py,sha256=ujezWOJfD7DUoj4q1meeMUnB97rOEtNR7mYw_PE9LMg,49
|
|
|
2
2
|
flamo/functional.py,sha256=9wl6fHkc8KMB5IMvbd_K7-z8Z2Miw0qOsNxWPItliPU,35138
|
|
3
3
|
flamo/utils.py,sha256=ypGKSABZMphgIrjCKgCH-zgR7BaupRbyzuUhsZFqAAM,3350
|
|
4
4
|
flamo/auxiliary/__init__.py,sha256=7lVNh8OxHloZ4KPmp-iTUJnUbi8XbuRzGaQ3Z-NKXio,42
|
|
5
|
-
flamo/auxiliary/eq.py,sha256=
|
|
5
|
+
flamo/auxiliary/eq.py,sha256=eIWMIq0ggizXLhTdeWWbgBXWUFXCJyoEbkBH7Gzasao,6779
|
|
6
6
|
flamo/auxiliary/filterbank.py,sha256=02w8dI8HoNDtKpdVhSJkIkd-h-KNXvZtivf3l4_ozzU,9866
|
|
7
7
|
flamo/auxiliary/minimize.py,sha256=fMTAAAk9yD7Y4luKS4XA1-HTq44xo2opq_dRPRrhlIY,2474
|
|
8
|
-
flamo/auxiliary/reverb.py,sha256=
|
|
8
|
+
flamo/auxiliary/reverb.py,sha256=9iKSuyuqRiHGGvaj0eizqVpu2V7plsX13OWiB6o1whU,31636
|
|
9
9
|
flamo/auxiliary/scattering.py,sha256=ITPT0TTOAROy3G0_kpykffRSqjoA9dFJ2LnaLxtUMF4,9482
|
|
10
|
-
flamo/auxiliary/config/config.py,sha256=
|
|
10
|
+
flamo/auxiliary/config/config.py,sha256=CxXj-8sLq0_m9KyLg1a6NwLoK1UvTz3i0jZOLraq14I,2893
|
|
11
11
|
flamo/optimize/__init__.py,sha256=grgxLmQ7m-c9MvRdIejmEAaaajfBwgeaZAv2qjHIvPw,65
|
|
12
12
|
flamo/optimize/dataset.py,sha256=2mfzsnyX_bzavXouII9ee_pd6ti4lv215ieGJHscceI,5829
|
|
13
|
-
flamo/optimize/loss.py,sha256=
|
|
13
|
+
flamo/optimize/loss.py,sha256=h6EeqjdX5P1SqDBKBavSxV25VBgnYK8tuX91wk6lw_g,33466
|
|
14
14
|
flamo/optimize/surface.py,sha256=uvsgxLFSvJ18s8kPcb22G3W1rgycXP1nNX0q48Pda2g,26135
|
|
15
15
|
flamo/optimize/trainer.py,sha256=he4nUjLC-3RTlxxBIw33r5k8mQfgAGvN1wpPBAWCjVo,12045
|
|
16
16
|
flamo/optimize/utils.py,sha256=R5-KoZagRho3eykY88pC3UB2mc5SsE4Yv9X-ogskXdA,1610
|
|
17
17
|
flamo/processor/__init__.py,sha256=paGdxGVZgA2VAs0tBwRd0bobzGxeyK79DS7ZGO8drkI,41
|
|
18
|
-
flamo/processor/dsp.py,sha256=
|
|
18
|
+
flamo/processor/dsp.py,sha256=w5BT3lWAJ0kOC7rjVl1dgYFcGdQ6214pa_NyAL-K9QI,119983
|
|
19
19
|
flamo/processor/system.py,sha256=9XwLtaGEVs9glVOFvyiPnQpsnR_Wjrv6k1i1qCs8D1Q,42516
|
|
20
|
-
flamo-0.1.
|
|
21
|
-
flamo-0.1.
|
|
22
|
-
flamo-0.1.
|
|
23
|
-
flamo-0.1.
|
|
20
|
+
flamo-0.1.5.dist-info/METADATA,sha256=hTn11LzrhyQUm4JbHD_JiSmDfpOLbvgrGgzPezvegVo,7825
|
|
21
|
+
flamo-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
22
|
+
flamo-0.1.5.dist-info/licenses/LICENSE,sha256=smMocRH7xdPT5RvFNqSLtbSNzohXJM5G_rX1Qaej6vg,1120
|
|
23
|
+
flamo-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|