smoosic
Version:
<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [application](https://smoosic.github.i
26 lines • 1.06 kB
TypeScript
import { SmoSelector } from '../../smo/xform/selections';
import { SuiScoreView } from '../sui/scoreView';
/**
* A generic function that can be sent used to animate playback
*/
export type AudioAnimationHandler = (view: SuiScoreView, selector: SmoSelector, offsetPct: number, durationPct: number) => void;
/**
* A generic function that can be sent used to clean up playback animation
*/
export type ClearAudioAnimationHandler = (delay: number) => void;
/**
* Allow users to specify their own music playback animations.
* @category SuiAudio
*/
export interface SuiAudioAnimationParams {
audioAnimationHandler: AudioAnimationHandler;
clearAudioAnimationHandler: ClearAudioAnimationHandler;
}
export declare const defaultClearAudioAnimationHandler: (delay: number) => void;
/**
* default implementation of playback animation.
* @category SuiAudio
* @returns
*/
export declare const defaultAudioAnimationHandler: (view: SuiScoreView, selector: SmoSelector, offsetPct: number, durationPct: number) => void;
//# sourceMappingURL=musicCursor.d.ts.map