-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[MU3 Backend] ENG-59: Fix missing secondary beam breaks #8492
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
[MU3 Backend] ENG-59: Fix missing secondary beam breaks #8492
Conversation
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done.
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492
// when equivalent to BEGIN32 or BEGIN64 | ||
if ((blp < i && bln >= i) | ||
|| bmc == Beam::Mode::BEGIN32 && i > 1 | ||
|| bmc == Beam::Mode::BEGIN64 && i > 2) |
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 introduces compiler warning, suggetion to add parens or the &&
conditions
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.
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.
Thanks!
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.
Likewise! I've been trying to keep a closer eye on warnings as I compile locally; hopefully no more will slip through!
else if (blp >= i && bln < i) | ||
else if ((blp >= i && bln < i) | ||
|| bmn == Beam::Mode::BEGIN32 && i > 1 | ||
|| bmn == Beam::Mode::BEGIN64 && i > 2) |
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.
same
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Previously, only the first beam was taken into account when importing Beam::Mode. This commit adds a mechanism to collect the beam type for all beams and make a more correct choice about Beam::Mode (including BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to the export code. Now the round trip from .mscx -> .xml -> .mscx is correct and complete *when beam modes are specified explicitly in the .mscx*; however, more thorough handling of Beam::Mode::AUTO (where it results in the equivalent of BEGIN32 or BEGIN64) on export needs to be done. Duplicate of musescore#8492, plus fixing 4 compiler warnings, see musescore#8554
Resolves: ENG-59: Fix missing breaks in secondary beams
Previously, only the first beam was taken into account when importing
Beam::Mode. This commit adds a mechanism to collect the beam type
for all beams and make a more correct choice about Beam::Mode (including
BEGIN32 and BEGIN64). Additionally, it adds handling of these modes to
the export code. Now the round trip from .mscx -> .xml -> .mscx is
correct and complete when beam modes are specified explicitly in the
.mscx; however, more thorough handling of Beam::Mode::AUTO (where it
results in the equivalent of BEGIN32 or BEGIN64) on export needs to be
done.