Documentation
    Preparing search index...

    Type Alias PianoOptions

    The options expected by the Piano constructor.

    type PianoOptions = {
        element: ElementOrSelector<HTMLElement>;
        octaves: number;
        showOctaves: boolean;
        startOctave: number;
        withFinalC: boolean;
    }
    Index

    The Element where the piano will be rendered

    octaves: number

    The amount of rendered octaves

    showOctaves: boolean

    Shows current octave on every C note

    startOctave: number

    The first rendered octave (e.g. 2 will start from C2)

    withFinalC: boolean

    Will render a final C key after the last octave