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

    Interface LineOrSpaceCard

    A note on the staff, with whether it sits on a line or in a space to choose.

    interface LineOrSpaceCard {
        answer: LineOrSpace;
        choices: LineOrSpace[];
        clef: Clef;
        kind: "lineOrSpace";
        note: Pitch;
        position: number;
    }
    Index

    Properties

    answer: LineOrSpace
    choices: LineOrSpace[]

    Always ['line', 'space'], in that order, so the two answers stay in the same place card after card

    clef: Clef
    kind: "lineOrSpace"
    note: Pitch

    The note shown, a natural

    position: number

    Where it sits, as staffPosition gives it: even on a line, odd in a space