@ioris/core
Version:
This package provides the core functionality for the [@ioris](https://www.npmjs.com/search?q=%40ioris) ecosystem for managing music lyrics with time synchronization.
12 lines (11 loc) • 1.04 kB
TypeScript
import type { Line, Lyric, Paragraph, TimeOptions, Word } from "../types";
export declare function getNextParagraph(lyric: Lyric, now: number, options?: TimeOptions): Paragraph | undefined;
export declare function getNextLine(lyric: Lyric, now: number, options?: TimeOptions): Line | undefined;
export declare function getNextWord(lyric: Lyric, now: number, options?: TimeOptions): Word | undefined;
export declare function getPrevParagraph(lyric: Lyric, now: number, options?: TimeOptions): Paragraph | undefined;
export declare function getPrevLine(lyric: Lyric, now: number, options?: TimeOptions): Line | undefined;
export declare function getPrevWord(lyric: Lyric, now: number, options?: TimeOptions): Word | undefined;
export declare function getFirstWord(line: Line): Word | undefined;
export declare function getLastWord(line: Line): Word | undefined;
export declare function getLinePositionInLyric(line: Line, lyric: Lyric): number;
export declare function getLinePositionInParagraph(line: Line, lyric: Lyric): number | undefined;