Class IntervalTimeline

Similar to Tone.Timeline, but all events represent intervals with both "time" and "duration" times. The events are placed in a tree structure optimized for querying an intersection point with the timeline events. Internally uses an Interval Tree to represent the data.

Hierarchy

  • Tone
    • IntervalTimeline

Constructors

Properties

debug: boolean = false

Set this debug flag to log all events that happen in this class.

name: string = "IntervalTimeline"
version: string = version

The version number semver

Accessors

  • get disposed(): boolean
  • Indicates if the instance was disposed. 'Disposing' an instance means that all of the Web Audio nodes that were created for the instance are disconnected and freed for garbage collection.

    Returns boolean

Methods

  • Iterate over everything in the timeline.

    Parameters

    • callback: IteratorCallback

      The callback to invoke with every item

    Returns this

  • Iterate over everything in the array in which the given time overlaps with the time and duration time of the event.

    Parameters

    • time: number

      The time to check if items are overlapping

    • callback: IteratorCallback

      The callback to invoke with every item

    Returns this

  • Iterate over everything in the array in which the time is greater than or equal to the given time.

    Parameters

    • time: number

      The time to check if items are before

    • callback: IteratorCallback

      The callback to invoke with every item

    Returns this

  • Convert the class to a string

    Returns string

    Example

    const osc = new Tone.Oscillator();
    console.log(osc.toString());
  • Returns all of the default options belonging to the class.

    Returns BaseToneOptions