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
I was testing with the attached MIDI file, and ran into some issues that I think are related to the fact that it's a type-0 file. For instance, BPM(midi) throws an error, and getnotes requires that the track be specified as 1 (normally it sees to assume that the MIDI data starts on track 2, but type-0 files only have 1 track).
I don't understand the BPM part. There doesn't seem to be a BPM information in your track, or the existing code fails to see it. This is not relevant with it being type 0 or not, because running this piece of loop:
for event in t.tracks[1].events
if typeof(event) == MetaEvent
if event.metatype == 0x51
tttttt = deepcopy(event.data)
break
end
end
end
Doesn't find the meta event that corresponds to the BPM signature. On the other side there is nothing wrong with the getnotes function:
I was testing with the attached MIDI file, and ran into some issues that I think are related to the fact that it's a type-0 file. For instance,
BPM(midi)
throws an error, andgetnotes
requires that the track be specified as1
(normally it sees to assume that the MIDI data starts on track 2, but type-0 files only have 1 track).C Major.zip
The text was updated successfully, but these errors were encountered: