You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Midi File exported from music21 and also convert to muspy track sound different.
midi_file -> music21_read -> get_key -> music21 export -> test.midi
midi_file -> music21_read -> get_key -> muspy_from_music21 export -> generated_track.midi
test.midi sound different from generated_track.midi
for i in os.listdir(SONGS_PATH):
if i.lower().endswith(('mid','midi')):
midi = converter.parse(SONGS_PATH i)
#Get Midi key
key = midi.analyze("key")
if key.mode == "major":
intervals = interval.Interval(key.tonic, pitch.Pitch("C"))
elif key.mode == "minor":
intervals = interval.Interval(key.tonic, pitch.Pitch("A"))
#Transpose to C major or A minor
transpose_midi = midi.transpose(intervals)
transpose_midi.write('midi', fp='test.midi') #This Midi is different from muspy midi
midi = muspy.from_music21(transpose_midi, resolution=resolution)
muspy.write("generated_track.midi", midi, kind="midi")
events = muspy.to_event_representation(midi, encode_velocity=True)
The text was updated successfully, but these errors were encountered:
Midi File exported from music21 and also convert to muspy track sound different.
midi_file -> music21_read -> get_key -> music21 export -> test.midi
midi_file -> music21_read -> get_key -> muspy_from_music21 export -> generated_track.midi
test.midi sound different from generated_track.midi
The text was updated successfully, but these errors were encountered: