Hiyve Components - v1.0.0
    Preparing search index...
    • One round of a drill: where it is in the drill and — given the drill's summary — the score so far, the question on its staff, the answers to choose from, and, once answered, whether the choice was right, with the button to the next round. The question is played as the choice is made, so the note is heard as well as seen, and can be heard again — on the recorded instrument samples names, or with the built-in voice. Each note lights up on the staff while it sounds. A question asked by ear is played as it appears — after its reference note, when it has one — and its staff shows once it is answered.

      A question answered by playing, given an answerArea that listens, says what to play, shows and sounds the note to start from, and once answered shows the notes to play, each marked as it was played (noteStyles).

      When the staff cannot be drawn the card says so, with a button to try again, and a question read off the staff waits for it rather than taking an answer. When the browser holds the sound back until a tap, as iOS can, a question asked by ear asks for the tap.

      Parameters

      Returns Element

      const drill = useDrill({ generate, length, seed });
      {drill.round && (
      <DrillCard round={drill.round} index={drill.index} total={drill.total} summary={drill.summary}
      loadEngine={loadEngine} onAnswer={drill.answer} onNext={drill.next} />
      )}