-
Notifications
You must be signed in to change notification settings - Fork 3k
Import ottavas from Sibelius correctly #21499
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
Conversation
fa1f8d3
to
525a11a
Compare
while (m_e.readNextStartElement()) { | ||
if (m_e.name() == "software") { | ||
m_exporterString += m_e.readText(); | ||
m_exporterString += m_e.readText().toLower(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't mix and match with
if (m_pass1.exporterString().contains(u"Dolet")) { |
56723d1
to
b9e114f
Compare
b9e114f
to
47aaf36
Compare
String m_sndFine; | ||
String m_sndSegno; | ||
String m_sndToCoda; | ||
bool visible = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unused
std::map<String, SymId> otherDirectionSyms; | ||
otherDirectionSyms = { { String(u"Rhythm dot"), SymId::augmentationDot }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, maybe nicer to do this one like this:
std::map<String, SymId> otherDirectionSyms; | |
otherDirectionSyms = { { String(u"Rhythm dot"), SymId::augmentationDot }, | |
static const std::map<String, SymId> otherDirectionSyms = { { String(u"Rhythm dot"), SymId::augmentationDot }, |
delete desc.sp; | ||
} else { | ||
if (spdesc.isStarted) { | ||
if (spdesc.sp && spdesc.sp->isOttava() && delayOttava) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it correct that you don't need to check spdesc.isStarted
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the else branch of if (spdesc._isStopped)
, can it have a 3rd state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cbjeukendrup I probably ought to, it can't hurt to be safe
And a rebase is needed |
47aaf36
to
d0f04d5
Compare
Sibelius exports its ottavas inconsistently with other programs - ottava tags should start before the notes under the ottava, and finish after the last note. Sibelius stops before, leaving the ottava a note short. This PR delays adding ottavas until the following note if the score was exported from Sibelius.

Before:
After:

(Depends on the commit identiying exporter software 2978b7b in #21483)