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

    Interface NoteNameIdCard

    A note on the staff with its name to choose.

    interface NoteNameIdCard {
        answer: string;
        bar?: {
            accidentals: (0 | 1 | -1 | null)[];
            notes: Pitch[];
            sign: BarRuleSign;
            target: number;
        };
        choices: string[];
        keySignature?: number;
        kind: "noteNameId";
        question: NoteQuestion;
        writtenNatural?: boolean;
    }
    Index

    Properties

    answer: string

    The right name, as the question gives it ("F♯")

    bar?: {
        accidentals: (0 | 1 | -1 | null)[];
        notes: Pitch[];
        sign: BarRuleSign;
        target: number;
    }

    A bar-rule card (barRule): the bar's four quarter notes as they sound, the sign written before each (null for none), the note asked (target, written with no sign) and the sign earlier in the bar that it keeps. Absent otherwise

    choices: string[]
    keySignature?: number

    The key signature the note is read under, as sharps (positive) or flats (negative); the note is written plainly after it. Absent when the note is read on its own

    kind: "noteNameId"
    question: NoteQuestion
    writtenNatural?: boolean

    The note is a natural written with its natural sign — under a key signature, the sign cancels the signature's sharp or flat for this note. Absent otherwise