UNPKG

@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) 657 B
import type { CharPosition, GridPosition, Line, Lyric, Word } from "../types"; export declare function getWordGridPositions(line: Line): Map<string, GridPosition>; export declare function getWordsByRow(line: Line): Map<number, Word[]>; export declare function getRowWords(line: Line, row: number): Word[]; export declare function getWordRowPosition(line: Line, wordID: string): number | undefined; export declare function getMaxRowPosition(line: Line): number; export declare function getCharPositions(line: Line): Map<string, CharPosition>; export declare function getWordsByLineIDAndRowPosition(lyric: Lyric): Map<string, Map<number, Map<number, Word>>>;