textalive-app-api - v0.5.2
    Preparing search index...

    Interface IChord

    コード進行の情報 / Chord info

    interface IChord {
        duration: number;
        endTime: number;
        index: number;
        name: string;
        next: IChord;
        previous: IChord;
        startTime: number;
        contains(time: number): boolean;
        overlaps(obj: TimedObject): boolean;
        overlaps(startTime: number, endTime: number): boolean;
        progress(time: number): number;
    }

    Hierarchy (View Summary)

    Index
    duration: number

    コード進行の継続時間 [ms] / Duration [ms]

    endTime: number
    index: number

    楽曲中のコード進行位置 / Index of this chord in the song

    name: string

    コード進行 / Chord

    next: IChord

    次のコード / Next chord

    previous: IChord

    前のコード / Previous chord

    startTime: number
    • Returns whether this time range contains the specified time (start and end inclusive).

      Parameters

      • time: number

        時刻 [ms] / Time [ms]

      Returns boolean

    • Returns whether the specified range overlaps with this time range (start and end inclusive).

      Parameters

      • obj: TimedObject

        時刻付きオブジェクト / Timed object

      Returns boolean

    • Returns whether the specified range overlaps with this time range (start and end inclusive).

      Parameters

      • startTime: number

        開始時刻 [ms] / Start time [ms]

      • endTime: number

        終了時刻 [ms] / End time [ms]

      Returns boolean

    • 指定された楽曲中の位置をこのコード進行中の位置 [0, 1] にマッピングして返す

      Returns the position in this chord [0, 1]

      Parameters

      • time: number

        楽曲中の位置 / Position in a song

      Returns number