Skip to content

Conversation

@iveshenry18
Copy link
Contributor

Resolves: ENG-81: Fret diagram spacers are incorrect on first render

This PR includes two fixes to FretDiagram spacers:

  1. It prevents them from creating an unnecessary gap to the right of a barline (by omitting the left spacer if it is the first ChordRest of the measure
  2. It partially lays out the FretDiagram before creating the spacer, correcting the initial creation of the spacer (which previously was incorrect upon user input).
  • I signed CLA
  • I made sure the code in the PR follows the coding rules
  • I made sure the code compiles on my machine
  • I made sure there are no unnecessary changes in the code
  • I made sure the title of the PR reflects the core meaning of the issue you are solving
  • I made sure the commit message(s) contain a description and answer the question "Why do those changes fix that particular issue?" or "Why are those changes really necessary as improvements?"
  • I made sure the commit message title starts with "fix #424242:" if there is a related issue
  • I created the test (mtest, vtest, script test) to verify the changes I made

This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.
@vpereverzev vpereverzev merged commit b2f88a8 into musescore:3.6.2_backend Jul 20, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 21, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 21, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 1, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 1, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 2, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 2, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 23, 2021
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 23, 2021
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request May 12, 2022
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request May 12, 2022
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
This commit changes the spacer code in ChordRest::shape to prevent a
left space from being created in the first beat of a measure. This
spacer was causing an unnecessary gap between the barline and the first
beat.

Duplicate of musescore#8636, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
On first render, fretboards created incorrect horizontal spacers since
they had not yet been laid out. This commit extracts the portion of
FretDiagram::layout() necessary for horizontal positioning and calls
it before creating the spacer.

Duplicate of musescore#8636, part 2
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