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.

14 lines (13 loc) 807 B
import type { Char, Line, Lyric, LyricSummary, Paragraph, TimeOptions, VoidPeriod, Word } from "../types"; export declare function calculateSpeed(items: { duration: () => number; chars?: () => Char[]; }[]): number; export declare function getWordSpeed(word: Word): number; export declare function getLineSpeed(line: Line): number; export declare function getParagraphSpeed(paragraph: Paragraph): number; export declare function getLyricSpeed(lyric: Lyric): number; export declare function getVoidPeriods(lyric: Lyric): VoidPeriod[]; export declare function isVoidTime(lyric: Lyric, now: number): boolean; export declare function getParagraphAverageLineDuration(paragraph: Paragraph): number; export declare function getCurrentSummary(lyric: Lyric, now: number, options?: TimeOptions): LyricSummary;