audio2midi 0.5.0__py2.py3-none-any.whl → 0.6.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.
@@ -147,6 +147,6 @@ class Guitar_Pitch_Det:
|
|
147
147
|
# If it's a rest, just advance the time
|
148
148
|
duration_sec = duration * (60 / tempo_bpm)
|
149
149
|
note_time += duration_sec
|
150
|
-
pm.instruments.append(
|
150
|
+
pm.instruments.append(instrument)
|
151
151
|
pm.write(output_file)
|
152
152
|
return output_file
|
@@ -49,10 +49,11 @@ class Melodia():
|
|
49
49
|
data, sr = librosa_load(audio, sr=44100, mono=True)
|
50
50
|
pm = PrettyMIDI(initial_tempo=tempo)
|
51
51
|
instrument = Instrument(program=40)
|
52
|
-
|
53
|
-
|
54
|
-
start =
|
55
|
-
|
52
|
+
for onset_sec, duration_sec, pitch in self.midi_to_notes(
|
53
|
+
self.hz2midi(np.insert(vamp_collect(data, sr, "mtg-melodia:melodia", parameters={"voicing": 0.2})['vector'][1],0, [0]*8)), 44100, smooth, minduration, hop):
|
54
|
+
start = onset_sec
|
55
|
+
end = start + duration_sec
|
56
|
+
instrument.notes.append(Note(100, int(pitch), start, end))
|
56
57
|
pm.instruments.append(instrument)
|
57
58
|
pm.write(output_file)
|
58
59
|
return output_file
|
@@ -2,12 +2,12 @@ audio2midi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
audio2midi/basic_pitch_pitch_detector.py,sha256=6ZH4SKL9qAj6ODSr84qr_QmNvDYOuZRUrbVCOB9430E,30663
|
3
3
|
audio2midi/crepe_pitch_detector.py,sha256=63PLW5pQ_WSlIr_bOSAv7wjIujA06Iy-pTQab3InPR4,34675
|
4
4
|
audio2midi/crepe_pitch_detector_tf.py,sha256=obOK9zWeAFWKhVuZAXG-SM2Cn-vVBjQMU08hwwjDvKA,7607
|
5
|
-
audio2midi/librosa_pitch_detector.py,sha256=
|
6
|
-
audio2midi/melodia_pitch_detector.py,sha256=
|
5
|
+
audio2midi/librosa_pitch_detector.py,sha256=U8r98mnkkRxTlG2M0fX5Fif3qwihgfNry1pa-4lEd-E,7782
|
6
|
+
audio2midi/melodia_pitch_detector.py,sha256=fYueHUjDeXXY4Aea5aOcJRT6E66NZkHYfG3D5fofYnw,2358
|
7
7
|
audio2midi/mt3_music_transcription.py,sha256=_8MgMoXd-LNzI4GeXwIJs6pq7B7lrEkzOQwQSPTo1wo,32
|
8
8
|
audio2midi/pop2piano.py,sha256=kBAF1kY-5Ctu92etNLo4Clr1hkW1B5OCvd-XT7SrI8g,125685
|
9
9
|
audio2midi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
audio2midi/violin_pitch_detector.py,sha256=C0--R0NaYcIyAFELGgebbs3yjAnQeVdtpk4iZ2NbUIA,61650
|
11
|
-
audio2midi-0.
|
12
|
-
audio2midi-0.
|
13
|
-
audio2midi-0.
|
11
|
+
audio2midi-0.6.0.dist-info/METADATA,sha256=kEyfNU2MSfEeddhBfT1omgwEZfGC7OCgv_Ca-8vvzDc,12857
|
12
|
+
audio2midi-0.6.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
13
|
+
audio2midi-0.6.0.dist-info/RECORD,,
|
File without changes
|