How To Interrogate Sheet Music Without HTML Container
See original GitHub issueGratitude
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:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
The alternative solution was to style as
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!