@onjmin/dtm
    Preparing search index...

    Type Alias SequencerOptions

    type SequencerOptions = {
        cues?: PlaybackCue[];
        getAudioTime: () => number;
        getBpm: () => number;
        getDrumPattern: () => DrumPattern | null;
        getLoop?: () => boolean | LoopConfig;
        getPlayStartStep: () => number;
        getSoloTrackId: () => string | null;
        getTracks: () => SequencerTrack[];
        onCue?: (cueId: string) => void;
        onEnd: () => void;
        onPlayDrum: (e: PlayDrumEvent) => void;
        onPlayNote: (e: PlayNoteEvent) => void;
        onTick: (currentPlayStep: number) => void;
        stepsPerBar: number;
    }
    Index

    Properties

    cues?: PlaybackCue[]

    再生中にイベントを発火させるタイミング

    getAudioTime: () => number
    getBpm: () => number
    getDrumPattern: () => DrumPattern | null
    getLoop?: () => boolean | LoopConfig

    ループ再生設定(BGM用途)。 boolean または詳細な LoopConfig を指定可能。

    getPlayStartStep: () => number
    getSoloTrackId: () => string | null

    ソロ対象トラックID(null=ソロ無効)

    getTracks: () => SequencerTrack[]
    onCue?: (cueId: string) => void

    キューポイント通過時のコールバック

    onEnd: () => void
    onPlayDrum: (e: PlayDrumEvent) => void
    onPlayNote: (e: PlayNoteEvent) => void
    onTick: (currentPlayStep: number) => void

    毎フレーム currentPlayStep を通知(プレイヘッド/オートスクロール用)

    stepsPerBar: number