UNPKG

wave-roll

Version:

JavaScript Library for Comparative MIDI Piano-Roll Visualization

20 lines 684 B
import { AudioPlayerContainer } from "@/lib/core/audio/audio-player"; export interface ABLoopDeps { audioPlayer: AudioPlayerContainer; pianoRoll: { setLoopWindow?: (a: number | null, b: number | null) => void; }; } export interface ABLoopAPI { /** Root <div> to append in UI */ element: HTMLElement; /** Returns { a:%|null, b:%|null } (0-100) for seek-bar overlay */ getLoopPoints: () => { a: number | null; b: number | null; } | null; /** Clear A·B points programmatically */ clear: () => void; } export declare function createABLoopControls(deps: ABLoopDeps): ABLoopAPI; //# sourceMappingURL=ab-loop-controls.d.ts.map