Hiyve Components - v1.0.0
    Preparing search index...
    • 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.

      Parameters

      Returns UseScoreResult

      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} />