question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StaveRepetitions wrong x positions (D.S., To Coda, etc)

See original GitHub issue

Already fixed.

Before: image

After: image

test_staverepetitions_coda_etc.musicxml.zip

MuseScore (3.5.2) doesn’t render this very well by the way: image

The issue was a few NaNs in Vexflow from undefined measurements (x/y values), i added safeguards against those to our Vexflow patch. Also, TO_CODA didn’t exist as a Vex.Flow.Repetition.type (in staverepetition.js), added that to the patch as well. Also new EngravingRule RepetitionSymbolsYOffset.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sschmidTUcommented, Jan 19, 2021

This should be finally fixed now: image

image

These test samples are added to our tests, see test/data/test_staverepetitions_coda_etc*.

@djae88 As you suggested, ‘To Coda’ is now fixed to the end of the measure. There was actually another error where the To Coda was attributed to the wrong measure (1 instead of 2), see above commit 9643493.

0reactions
sschmidTUcommented, Nov 3, 2022

Fixed all right-oriented repetitions (backwards jumps) to be near the end of the measure. before: image

after: image

before: image

after: image

before: image

after: image

before (Coda_Left): image

after: image

(Coda (left) was turned to TO_CODA because of checks in the RepetitionInstructionReader that tried to balance Coda and To Coda occurences)

samples (all repetition types): repetition_types_all_code_DaCapo_DalSegno_etc.zip

Running visual regression tests in #1265.

Read more comments on GitHub >

github_iconTop Results From Across the Web

D.S., D.S. al Coda
D.S., D.S. al Coda. D.S., or Dal Segno, means “from the sign.” It directs the player to return to a spot earlier in...
Read more >
Clinic: Repeats - D.C & D.S al Coda - YouTube
Clinic #14Repeats. MusicTheoryGuy answers a question from Gilberto in Los Angeles, USA. This video is the fourth in a six-part series of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found