UNPKG

piano-chart

Version:

Display notes on a piano keyboard

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