audio2midi 0.2.0__py2.py3-none-any.whl → 0.3.0__py2.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.
- audio2midi/crepe_pitch_detector.py +6 -3
- audio2midi/librosa_pitch_detector.py +0 -1
- audio2midi/violin_pitch_detector.py +2 -1
- {audio2midi-0.2.0.dist-info → audio2midi-0.3.0.dist-info}/METADATA +1 -1
- audio2midi-0.3.0.dist-info/RECORD +11 -0
- audio2midi-0.2.0.dist-info/RECORD +0 -11
- {audio2midi-0.2.0.dist-info → audio2midi-0.3.0.dist-info}/WHEEL +0 -0
@@ -17,11 +17,14 @@ class PredictProgressCallback(Callback):
|
|
17
17
|
self.total_batches = total_batches
|
18
18
|
self.progress_callback = progress_callback
|
19
19
|
def on_predict_begin(self, logs=None):
|
20
|
-
self.progress_callback
|
20
|
+
if self.progress_callback:
|
21
|
+
self.progress_callback(0,self.total_batches)
|
21
22
|
def on_predict_batch_end(self, batch, logs=None):
|
22
|
-
self.progress_callback
|
23
|
+
if self.progress_callback:
|
24
|
+
self.progress_callback(batch,self.total_batches)
|
23
25
|
def on_predict_end(self, logs=None):
|
24
|
-
self.progress_callback
|
26
|
+
if self.progress_callback:
|
27
|
+
self.progress_callback(self.total_batches,self.total_batches)
|
25
28
|
|
26
29
|
|
27
30
|
class Crepe():
|
@@ -1270,7 +1270,8 @@ class Violin_Pitch_Det(Pitch_Det):
|
|
1270
1270
|
value = value.view(-1, value.shape[-1])
|
1271
1271
|
value = value.detach().cpu().numpy()
|
1272
1272
|
performance[key].append(value)
|
1273
|
-
progress_callback
|
1273
|
+
if progress_callback:
|
1274
|
+
progress_callback(i,len(frames))
|
1274
1275
|
performance = {key: np.concatenate(value, axis=0)[:len(times)] for key, value in performance.items()}
|
1275
1276
|
performance['time'] = times
|
1276
1277
|
return performance
|
@@ -0,0 +1,11 @@
|
|
1
|
+
audio2midi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
audio2midi/basic_pitch_pitch_detector.py,sha256=6ZH4SKL9qAj6ODSr84qr_QmNvDYOuZRUrbVCOB9430E,30663
|
3
|
+
audio2midi/crepe_pitch_detector.py,sha256=UgyN9oJOrRsWrbtsyD1r4OiX8StRg5o_HrMq0JDKj4o,7605
|
4
|
+
audio2midi/librosa_pitch_detector.py,sha256=CdPDt72zYRjr3u7dVBdq3wrGoi96i2PV-LLvqWvHmpI,7790
|
5
|
+
audio2midi/melodia_pitch_detector.py,sha256=YFt9NKyZ_Dyt_3ltInUz6QZgovmmPK6gR9EPlL_aV5Y,2402
|
6
|
+
audio2midi/pop2piano.py,sha256=kBAF1kY-5Ctu92etNLo4Clr1hkW1B5OCvd-XT7SrI8g,125685
|
7
|
+
audio2midi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
+
audio2midi/violin_pitch_detector.py,sha256=C0--R0NaYcIyAFELGgebbs3yjAnQeVdtpk4iZ2NbUIA,61650
|
9
|
+
audio2midi-0.3.0.dist-info/METADATA,sha256=kgJtW1RMkRqLbO3Do2XNVNaTs0CvRjWii6R2trW6Afg,4887
|
10
|
+
audio2midi-0.3.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
11
|
+
audio2midi-0.3.0.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
audio2midi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
audio2midi/basic_pitch_pitch_detector.py,sha256=6ZH4SKL9qAj6ODSr84qr_QmNvDYOuZRUrbVCOB9430E,30663
|
3
|
-
audio2midi/crepe_pitch_detector.py,sha256=mNJdthApwWPTnWy0pWzDFBUlnilYtB0q6dAEOKiVPUE,7485
|
4
|
-
audio2midi/librosa_pitch_detector.py,sha256=w9GnFa0E2FIeMtE25HilykC-wYO4W1NSNweAUDwOMvA,7819
|
5
|
-
audio2midi/melodia_pitch_detector.py,sha256=YFt9NKyZ_Dyt_3ltInUz6QZgovmmPK6gR9EPlL_aV5Y,2402
|
6
|
-
audio2midi/pop2piano.py,sha256=kBAF1kY-5Ctu92etNLo4Clr1hkW1B5OCvd-XT7SrI8g,125685
|
7
|
-
audio2midi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
audio2midi/violin_pitch_detector.py,sha256=0teoY_TNfLxgO3BNrTmJUgjkLSKZfZz7vzzG_fFtRNs,61607
|
9
|
-
audio2midi-0.2.0.dist-info/METADATA,sha256=1i3NRZFtwNEynsa3B0rRlIGv-VJlPg0ofIW-UPkimvw,4887
|
10
|
-
audio2midi-0.2.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
11
|
-
audio2midi-0.2.0.dist-info/RECORD,,
|
File without changes
|