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.

How To Interrogate Sheet Music Without HTML Container

See original GitHub issue

Gratitude

Hey all! Thank you so much for this library! I cannot express how amazing it is!

Situation

I’m in a situation where I need to know information about the music xml file provided, and I don’t necessarily need to render it.

The data I’m looking to extract is information like

  • Sheet Music Title
  • Sheet Music Measures
  • etc.

Previous Attempts

I tried to make 2 components that both used Open Sheet Music Display but that didn’t work because only one instance can be used on the page.

I tried to rely on pulling information from the original instance, but I can’t because sometimes the component that it’s being used in does not get rendered, which means the logic for using it will never execute.

Request For Guidance

So I have to ask. How can I interrogate the sheet music xml file for the information I need that doesn’t involve creating an OSMD object?

Is it something like the load function but external? https://github.com/opensheetmusicdisplay/opensheetmusicdisplay/blob/develop/src/OpenSheetMusicDisplay/OpenSheetMusicDisplay.ts#L89

If so can you provide a code snippet or guidance on how to achieve this?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
loganknechtcommented, Apr 23, 2021

The alternative solution was to style as

{
    height: "0px",
    overflow-x: "hidden"
}
1reaction
loganknechtcommented, Oct 23, 2020

Well. @sschmidTU I feel sillier in my solution now.

Thanks for the example. I can confirm it worked, just as amazingly as you suggested.

❤️ ❤️ ❤️ ❤️ ❤️

Thank you for continuing to be such a pleasure to interact with, and hopefully others will find this issue if they have the same question!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playing Sound In Hidden Tag - html - Stack Overflow
I have been trying to attach an audio which should autoplay and will be hidden. It's very simple. Just a few lines of...
Read more >
Create a Music Player using JavaScript - GeeksforGeeks
We will start by creating the HTML layout first that defines the structure of the player, make it look good by styling using...
Read more >
Video and audio content - Learn web development | MDN
The audio and video tracks within the container hold data in the ... is often stored without a container, or with a simplified...
Read more >
Custom HTML Creative - Qualtrics
the HTML ID of the container where the creative. In many cases, an HTML tag with an ID already exists in the proper...
Read more >
HTML Standard
For CSS style sheets, we tentatively define here that their critical ... of whether the party that implemented the PDF viewer component was...
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