Hiyve Components - v1.0.0
    Preparing search index...

    @hiyve/react-music-performance/theory — theory drills in a practice app: answered on an instrument, and kept with the takes.

    Questions from @hiyve/music-theory set to be answered by playing are listened for with the same note following as a practice take, from the microphone or a MIDI instrument, and judged note by note. It is kept behind this entry so the rest of the package works without the theory packages installed.

    • PlayDrillCard — a drill round answered by playing: what to play, a listening panel, each note marked
    • usePlayedAnswer — the listening on its own, for a card of your own
    • judgePlayedAnswer — the notes to play judged against the notes heard, by pitch
    • useDrillHistory / SavedDrillsTable — the drills kept in this browser, as takes are kept, and their list
    import { defaultTheoryDrillSettings, generateTheoryQuestion } from '@hiyve/music-theory';
    import { useDrill, withPlayAnswer } from '@hiyve/react-music-theory';
    import { PlayDrillCard } from '@hiyve/react-music-performance/theory';

    const settings = withPlayAnswer(defaultTheoryDrillSettings, true);
    const drill = useDrill({ generate: (random) => generateTheoryQuestion(settings, random), length: 10, seed });
    {drill.round && <PlayDrillCard round={drill.round} index={drill.index} total={drill.total} loadEngine={loadEngine} onAnswer={drill.answer} onNext={drill.next} source="midi" />}

    Components

    PlayDrillCard
    SavedDrillsTable

    Other

    PlayDrillCardLabels
    PlayDrillCardProps
    PlayedAnswer
    SavedDrillResult
    SavedDrillsTableLabels
    SavedDrillsTableProps
    UseDrillHistoryOptions
    UseDrillHistoryResult
    UsePlayedAnswerOptions
    UsePlayedAnswerResult
    PlayedAnswerStatus
    PlayedNoteMark
    defaultPlayDrillCardLabels
    defaultSavedDrillsTableLabels
    judgePlayedAnswer
    mergePlayDrillCardLabels
    mergeSavedDrillsTableLabels
    savedDrillResultFrom
    useDrillHistory
    usePlayedAnswer