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

    Interface NoteQuestion

    A note on the staff to name.

    interface NoteQuestion {
        answer: string;
        byEar: boolean;
        choices: string[];
        clef: Clef;
        kind: "note";
        musicxml: string;
        notes: Pitch[];
        pitch: Pitch;
        play: PlayTask | null;
        playAnswer: boolean;
        playback: QuestionPlayback;
        reference: Pitch | null;
        sounds: number[];
    }

    Hierarchy

    • QuestionBase
      • NoteQuestion
    Index

    Properties

    answer: string

    The right answer, as a code among the choices: a note's name ("F♯"), an interval (M3), a chord quality (minor), a key (D:major), a scale (dorian). Show it with labels of your own, or the defaults of @hiyve/react-music-theory

    byEar: boolean

    Asked by ear: heard first, and seen once answered. Never for a key signature, which is read

    choices: string[]

    The answers to choose from, shuffled, the right one among them

    clef: Clef
    kind: "note"
    musicxml: string

    The question on its staff, as a one-bar MusicXML score to draw

    notes: Pitch[]

    The notes the question is made of, lowest or first first

    pitch: Pitch

    The note shown

    play: PlayTask | null

    Answered by playing, what to play; null otherwise

    playAnswer: boolean

    Answered by playing on an instrument, not by choosing a name

    Whether sounds are heard together or one after another

    reference: Pitch | null

    Asked by ear, the note heard before the question to name it from — the C at or below it — for a note; null for the rest, and for any question not asked by ear

    sounds: number[]

    What the question sounds like, as MIDI numbers — heard once it is answered, or first when it is asked by ear