Load a MusicXML score for grading.
Accepts a File from a picker or drop zone, or MusicXML text. The loaded score is also exposed as a TakeScoreReference (takeScore) to pass to TakeRecorder, so the take records which score it was played against.
File
TakeScoreReference
takeScore
TakeRecorder
const { score, takeScore, loadFile, error } = useScore();<input type="file" accept=".musicxml,.xml" onChange={(e) => e.target.files?.[0] && void loadFile(e.target.files[0])} /><TakeRecorder score={takeScore} /> Copy
const { score, takeScore, loadFile, error } = useScore();<input type="file" accept=".musicxml,.xml" onChange={(e) => e.target.files?.[0] && void loadFile(e.target.files[0])} /><TakeRecorder score={takeScore} />
Load a MusicXML score for grading.
Accepts a
Filefrom a picker or drop zone, or MusicXML text. The loaded score is also exposed as aTakeScoreReference(takeScore) to pass toTakeRecorder, so the take records which score it was played against.