v5.0.0
    Preparing search index...

    Interface NoteHeadStruct

    interface NoteHeadStruct {
        alignCenter?: boolean;
        customGlyphCode?: string;
        displaced?: boolean;
        dots?: number;
        duration: string;
        durationOverride?: Fraction;
        index?: number;
        keys?: string[];
        line?: number;
        noteType?: string;
        slashed?: boolean;
        stemDirection?: number;
        style?: ElementStyle;
        type?: string;
        x?: number;
        y?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alignCenter?: boolean
    customGlyphCode?: string
    displaced?: boolean
    dots?: number

    The number of dots, which affects the duration.

    duration: string

    The time length (e.g., q for quarter, h for half, 8 for eighth etc.).

    durationOverride?: Fraction
    index?: number
    keys?: string[]

    Array of pitches, e.g: ['c/4', 'e/4', 'g/4']

    line?: number
    noteType?: string
    slashed?: boolean
    stemDirection?: number
    style?: ElementStyle
    type?: string

    The note type (e.g., r for rest, s for slash notes, etc.).

    x?: number
    y?: number