@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.
9 lines (8 loc) • 809 B
TypeScript
import type { Char, Line, Lyric, Paragraph, TimeOptions, Word } from "../types";
export declare function getCurrentParagraph(lyric: Lyric, now: number, options?: TimeOptions): Paragraph | undefined;
export declare function getCurrentLine(lyric: Lyric, now: number, options?: TimeOptions): Line | undefined;
export declare function getCurrentWord(lyric: Lyric, now: number, options?: TimeOptions): Word | undefined;
export declare function getCurrentChar(lyric: Lyric, now: number, options?: TimeOptions): Char | undefined;
export declare function getCurrentParagraphFromLine(line: Line, lyric: Lyric): Paragraph | undefined;
export declare function getCurrentLineFromWord(word: Word, lyric: Lyric): Line | undefined;
export declare function getCurrentWordFromChar(char: Char, lyric: Lyric): Word | undefined;