OptionalheightHeight of the box the staff is centred in, in pixels (default: 176)
OptionalhighlightNotes to light up, by their place in the question's notes — lowest
first in a chord or harmonic interval, left to right otherwise
OptionalhighlightColour of a lit note (MUI palette path or CSS colour; default: primary.main)
OptionallabelsSupplies the notation engine (an OpenSheetMusicDisplay-compatible build)
The one-bar MusicXML to draw, as a question gives it
OptionalnoteNote styles as MusicXmlPlayer takes them, keyed by musicXmlNoteKey:
a colour, and the note played in a wrong note's place, drawn beside it
OptionalonCalled when the engine or the score fails to load
OptionalonTold as the staff is drawn: 'drawing', then 'drawn' — or 'failed', when it says so in its box with a button to try again
OptionalsxOptionalzoomSize of the staff relative to the engine's own (default: 1.1)
Props for
StaffSnippet.