-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load MIDI file #149
Comments
Latest stable MIDI.jl is v2.0.2 can you first update and try again? I don't think there are any breaking changes that would affect you, unless you were using track events directly. |
Oh yeah, sorry about the docs. I'll open a Pull Request now. We forgot to update that part.... :D |
ok docs updated, there was actually a pr open |
For some reason, |
On a fresh environment where the latest version installs and compiles correctly, I get the same errors.
If I use the
also,
|
I'm a bit confused what's going on. As you can see in the tests, Can you please make a Minimal Working Example? A full, self contained, runnable piece of code that replicates the problem? Also please attach the file you are trying to load. |
Here is an example:
ERROR: UndefVarError: load not defined
Stacktrace:
[1] top-level scope
@ none:1 Here is the file Bach_cello_bwv-1007_1.zip |
I'll have a look by tonight, thanks. |
Alright, so the problem is, you need to be using |
So, just to be clear: you don't need to use FileIO. Just |
@Datseris
|
Hm, I think this might be specific to your own file. My guess is that there is an event type we are missing here: https://github.com/JuliaMusic/MIDI.jl/blob/master/src/events.jl Can you check? And if we are missing your special event, then please just open a PR that incorporates this event. It is as simple as adding one mapping for 0x54 . |
I can't find the status byte 0x54 anywhere in https://www.recordingblogs.com/wiki/status-byte-of-a-midi-message . Are you sure the MIDI file is valid? |
Ah okay it is the SMPTE message : https://www.recordingblogs.com/wiki/midi-smpte-offset-meta-message Haha infact we have a TODO in the events.jl to add this. Okay so @johncwok this is a simple PR once you have it open I can review and merge. |
@Datseris Done. Please go ahead with the review & merge. |
When I run
load(filename)
, orload(File{format"MIDI"}(filename))
with filename being the path to the file, I get the following errors respectively:I am using the version
1.12.5
Is the path to the file not a valid argument anymore? If so, it would be helpful to include in the doc, since it still mentions the depreciated
readMIDIFile
function in all examples.The text was updated successfully, but these errors were encountered: