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.

Support Rehearsal Marks / directions

See original GitHub issue

As per the attached file, the measure directive

      <direction placement="above">
        <direction-type>
          <rehearsal>Section name</rehearsal>
        </direction-type>
      </direction>

is not handled. Would be great to process it 🙏

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
sschmidTUcommented, Jan 27, 2021

Done.

image image

Samples: test_rehearsal_marks_2_samples.zip (added to our test samples: test/data/test_rehearsal_marks*.musicxml)

new EngravingRules:

osmd.rules.RenderRehearsalMarks = true; // default
osmd.rules.RehearsalMarkXOffset = 0; // default: avoid collision with metronome number
osmd.rules.RehearsalMarkYOffset = 0; // default: avoid collision with chord symbols
osmd.rules.RehearsalMarkFontSize = 10; // vexflow default: 12, too big with chord symbols
osmd.rules.RehearsalMarkXOffsetSystemStartMeasure = -20; // default. for 5 pixels to the right, try -15
// this one only applies to "the first measure in a new line" (new line = new system)

Now released in OSMD 0.9.2 (see changelog).

3reactions
sschmidTUcommented, Jan 12, 2021

I don’t think a Vexflow issue just for this would be the way to go, since Vexflow doesn’t have collision checks for anything above or below the staff, it would need a system for all of that. We already check for placement and collision for many such elements like measure numbers and lyrics, and add new elements to the skyline and bottomline (highest/lowest point where we draw elements for a given x), so doing likewise for rehearsal directions in OSMD should be the way to go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rehearsal marks - MuseScore
Click on a note (or rest) at the desired location, then click the [B1] rehearsal mark icon in the "Text" palette (double-click in...
Read more >
Rehearsal letter - Wikipedia
A rehearsal letter is a boldface letter of the alphabet in an orchestral score, and its corresponding parts, that provides the conductor, who...
Read more >
Rehearsal marks - Steinberg Help
Rehearsal marks are an ordered sequence of letters or numbers, which along with bar numbers, provide a reference point for music that has...
Read more >
How do you enter Rehearsal Letteres in Logic Pro X 10.4.8
For you it may be obvious, but I never heard the term "rehearsel letters" before. So what are they? My first tip is...
Read more >
Rehearsal numbers on parts – MakeMusic Help Center
There are a couple things you can do to change the positioning to affect all of the rehearsal marks between score and parts...
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