Skip to content
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

Issue #18124: Crash on import of capella file #133

Merged
merged 1 commit into from
Nov 23, 2012

Conversation

AntonioBL
Copy link
Contributor

Here is a possible fix for the crash of capella files containing placeholders and grace notes, i.e. elements with ticks=0, which was leading to a division by 0 problem.
Please check the conformity to MuseScore coding rules and let me know if changes are needed.
The code works for me both for Linux Mint and Windows XP, however I am not a C/C++ programmer and I am not sure if some pieces I added could be written in a more effective/efficient way.
Possible issues:

  • this code completely deletes placeholder (as v1.2 was doing); if marks or texts are attached to them, they are deleted as well; the solution to this point needs discussion about implementation (link texts to the previous or next element? What if the placeholder is at the beginning/end of a measure or system?) and capella files examples;
  • the grace notes should be imported correctly by the code (v1.2 was deleting grace notes), with attached text and symbols. There can be problem if grace notes are tuplets, since duration for tuplets is defined in "capella.cpp" related to ticks. Tuplets import for capella files is however still a work in progress. Capella files examples can be helpful.

wschweer added a commit that referenced this pull request Nov 23, 2012
@wschweer wschweer merged commit 26fff15 into musescore:master Nov 23, 2012
@lasconic
Copy link
Contributor

Thanks Antonio for the pull request. It has been merged, but I would appreciate if you sign the CLA http://musescore.org/en/cla for this contribution and your future ones. Can you please let me know when it's done?

@AntonioBL
Copy link
Contributor Author

Dear Nicolas,
already done :-)
My user name on musescore.org is ABL (user 11921) (real name Antonio Lotti; someone had already taken the "ABL" nickname on github, so I am using a different nickname there).
Best regards,
Antonio

----Messaggio originale----

Da: notifications@github.com

Data: 23-nov-2012 17.25

A: "musescore/MuseScore"MuseScore@noreply.github.com

Cc: "Antonio Lotti (ABL)"antonio.lotti@alice.it

Ogg: Re: [MuseScore] Issue #18124: Crash on import of capella file (#133)

Thanks Antonio for the pull request. It has been merged, but I would appreciate if you sign the CLA http://musescore.org/en/cla for this contribution and your future ones. Can you please let me know when it's done?

          —

          Reply to this email directly or view it on GitHub.

@lasconic
Copy link
Contributor

My mistake then :) sorry for that.

2012/11/23 Antonio Lotti (ABL) notifications@github.com

Dear Nicolas,
already done :-)
My user name on musescore.org is ABL (user 11921) (real name Antonio
Lotti; someone had already taken the "ABL" nickname on github, so I am
using a different nickname there).
Best regards,
Antonio

----Messaggio originale----

Da: notifications@github.com

Data: 23-nov-2012 17.25

A: "musescore/MuseScore"MuseScore@noreply.github.com

Cc: "Antonio Lotti (ABL)"antonio.lotti@alice.it

Ogg: Re: [MuseScore] Issue #18124: Crash on import of capella file (#133)

Thanks Antonio for the pull request. It has been merged, but I would
appreciate if you sign the CLA http://musescore.org/en/cla for this
contribution and your future ones. Can you please let me know when it's
done?

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//pull/133#issuecomment-10665031.

heuchi pushed a commit to heuchi/MuseScore that referenced this pull request Nov 13, 2013
Xmader added a commit to Xmader/MuseScore that referenced this pull request Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants