-
Notifications
You must be signed in to change notification settings - Fork 383
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
Create more specific instruments from MusicXML import #988
Comments
Also this:
shows all notes to be |
Hello, and welcome. In the future please use the bug template. For instance, what version of music21 are you using? On the latest version (6.7.1), MuseScore and Finale both show percussion clef and drumset: Regarding the unpitched noteheads appearing below the staff, this is a known missing feature on the roadmap for v7 (#235). No guarantees what features will make it in to v7, but stay tuned for announcements about the release of v7 on the mailing list if you like. Cheers |
Apologies - I didn't see a template, I just got a blank issue form. |
I'm on music21 6.7.1 and musescore 3.6.2.538020600 |
Thanks for the additional info. Can you clarify what you mean by piano score? |
Sorry - I meant that it sounded like a piano when I played it. |
Thanks. If you install the dev version you might find that piece is already resolved -- see #961 . |
Superb -- how do I install the dev version? |
|
I don't know how I got to the issue submission screen previously but I got here through https://github.com/cuthbertLab/music21/issues/new/ rather than https://github.com/cuthbertLab/music21/issues/choose/. I believe that can be disabled somewhere. When I run the dev version with this:
I still get only and it doesn't have percussion instrument selected. |
You're quite right, we just weren't ready to do that until we added a feature request template last week. You are quite knowledgable on this, so forgive me if I sounded out of breath! All is well. So the C notes are the missing feature we haven't developed yet. We're not reading that info from musicXML yet because we need to decide on the internal model for unpitched notes. Hopefully coming later this year. This is the instrument m21 found: We should have created at the very least a BassDrum object; better yet, a Drum Set. While all the particulars with percussion are going to need to wait until the rest of the percussion work is attacked, at the very least we should be able to perform better instrument identification either from the part name or the midi program given. I can reproduce this on a piece not involving percussion:
So I will accept this issue on that basis, this is a manageable chunk someone could work on independently from the percussion work. Thanks for using the package and for writing us this report! Cheers. |
I recognize the exasperation as I'm dealing with the same issue with my own repo, to the point I've written a bot to cheerily complain on my behalf when info is missing. All is well. It's good to know that this is something in the pipeline. I'll just use midi parsing for the interim. |
Then you'll definitely want to be on the dev version, we made a lot of MIDI improvements in it. One more fix for rests in voice (small thing, not every MIDI file affected) will be merged likely this week in #986 if not tonight. |
I am on the dev version, but still not much luck for percussion (although I'll be happy to open a new issue for this):
outputs
although I can't say for sure the midi file is perfect. |
Thanks for the report. Here are the relevant events m21 tries to read for instruments:
I don't know if the first one is handled, and I don't know if the second event is legal--it's the one that's crashing. Given the several problems with this file (null-terminated instrument name, note events in the first track instead of conductor track, "0" program change), I'm guessing MuseScore wrote it? We generally let these errors bubble up for software-coded (as opposed to hand-coded) formats, but I think we could reduce the severity of this failure, given that we at least had "drumset" in another event. |
Yep, this one was written by musescore. |
No need for a second issue -- I'll open a PR to reduce severity of this failure. THANKS for catching it -- always love to have more testers before we put out a release |
op-voor-op-achter.txt
When I open this file directly with musicxml, this shows and plays as a drum score. When I open it using this:
it opens as a piano score, and the notes that used to be hihats (top of the bar) are now below the bar
The text was updated successfully, but these errors were encountered: