UNPKG

piano-chart

Version:

Display notes on a piano keyboard

13 lines (12 loc) 561 B
import { Key } from './Key'; import { G } from '@svgdotjs/svg.js'; import { INoteValue, NoteValue } from "./Note"; import { KeyEventHandler } from './PianoElement'; import { InstrumentSettings } from './InstrumentSettings'; export declare class WhiteKey extends Key { constructor(container: G, instrumentSettings: InstrumentSettings, onKeyPress: KeyEventHandler, onKeyRelease: KeyEventHandler, note: NoteValue, width: number); create(): void; resize(width: number): void; press(displayNote: INoteValue): void; release(): void; }