Interface IRepetitiveSegment

サビなどの繰り返し区間の情報 / Repetitive segment info (e.g., chorus segment)

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

Hierarchy (view full)

Properties

duration: number

繰り返し区間の継続時間 [ms] / Duration [ms]

endTime: number
index: number

楽曲中の繰り返し区間の位置 / Index of this repetitive segment in the song

次の繰り返し区間 / Next repetitive segment

前の繰り返し区間 / Previous repetitive segment

startTime: number

Methods

  • 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 repetitive segment [0, 1]

    Parameters

    • time: number

      楽曲中の位置 / Position in a song

    Returns number