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.

GraphicalTies being undefined

See original GitHub issue

image From the demo ^

The error only occurs with osmd 1.4.3 and newer versions.

I don’t know exactly why this error happens. I think it has something to do with turning to many instruments invisible at once.

Or i may be using some weird sheet file. kakebordet.txt

One solution was to edit MusicSheetCalculator.ts replacing this for loop and the setTieDirections() call inside the null check above: image image

Also, the error only appear when calling the updateGraphic() method before rendering, but i need it to correctly render a transposed sheet, so i don’t think i have a choice…

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TormodKvcommented, Mar 14, 2022

Nice! Thank you! I don’t think transposing works as supposed to when rendering without calling updateGraphic() first

0reactions
sschmidTUcommented, Apr 26, 2022

@TormodKv fixed.

Here’s the code to replicate, for reference: (please share as text in addition to screenshot next time)

for (let i = 0; i <= 6; i++) {
    if (i !== 3) {
        osmd.Sheet.Instruments[i].Visible = false;
    }
}
osmd.updateGraphic();
osmd.render();
Read more comments on GitHub >

github_iconTop Results From Across the Web

Graphs being plotted despite being undefined.
I'm quite new to the idea of limits, etc. But I've seen that when you use a grapher, it plots undefined points. For...
Read more >
Graphical limit where function undefined - YouTube
Khan Academy's mission is to provide a free, world-class education for anyone, anywhere. Our platform offers free high-quality, standards- ...
Read more >
How to Graph Zero or Undefined Slope- - YouTube
This Math educational video will help youlLearn how to graph and recognize equations that have a zero or undefined slope..
Read more >
opensheetmusicdisplay/MusicSheetCalculator.ts at develop - GitHub
import { GraphicalTie } from ". ... Clear the stored system images dict - all systems have to be redrawn. ... StartNote !==...
Read more >
Undefined & Zero Slope Graph - Video & Lesson Transcript
A line has a slope that is considered undefined when it does not have any horizontal run. It will be a straight vertical...
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