@onjmin/dtm
    Preparing search index...

    Type Alias LyricsConductor

    歌詞同期コンダクタ。音節ポインタを保持し、Note On ごとに1音節消費する

    type LyricsConductor = {
        consume: (trackId: number) => ConsumedSyllable | null;
        reset: () => void;
    }
    Index

    Properties

    Properties

    consume: (trackId: number) => ConsumedSyllable | null

    演奏トラック trackId の Note On に対応する音節を1つ消費して返す。 歌詞が無い/尽きた場合は null(利用側は楽器音として鳴らす)。

    reset: () => void

    ポインタを初期化する(再生開始時に呼ぶ)