OptionalanswerFor a question answered by playing (question.playAnswer): shown in
place of the answer buttons — a panel that listens to the instrument and
calls onAnswer with what was played and whether it was right. Without
it, the question is answered by choosing, like any other
OptionalchildrenAnything to show under the question — a hint, a replay button
OptionalcolorsThe round's place, from 0
OptionallabelsSupplies the notation engine for the staff
OptionalnamesThe names answers are shown by: intervals, chords, scales and keys
OptionalnoteFor a question answered by playing, once it is: how the notes to play were played, as note styles for the staff — a colour per note and the note played in a wrong one's place — as a graded take's are drawn
A choice was made — or, from answerArea, an answer played, with whether it was right
OptionalonCalled when the staff fails to draw or the sound fails to start
OptionalonEnd the drill early, keeping what was answered (useDrill's finish); the Finish button shows when given
Move on
OptionalonTold when the card starts and stops sounding notes — the question, its starting note — so a microphone listening for the answer can wait for the card to fall quiet
The round being asked
OptionalsamplesRecorded samples to play the question with — a piano, say — instead of the built-in voice; the question's notes are downloaded as it appears. The SDK ships none: you choose the host, and that set's licence applies
OptionalsoundPlay the question once a choice is made, with a button to hear it again
(default: true). A question asked by ear (question.byEar) is played as
it appears — after its reference note, when it has one — with its staff
hidden until it is answered; with sound off, or where the browser has no
Web Audio, it shows its staff like any other
OptionalsummaryHow the drill has gone so far (useDrill's summary): given, the card
shows the running score and how far through the drill it is
OptionalsxQuestions in the drill
Props for
DrillCard.