Tone.IntervalTimeline↳ EXTENDS Tone
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.
CONSTRUCTORnew Tone.IntervalTimeline ( )
.remove ( )#
The event to remove from the timeline
Remove an event from the timeline.
.cancel ( )#
The time to query.
Remove events whose time time is after the given time
.forEach ( )#
Iterate over everything in the timeline.
.forEachAtTime ( )#
The time to check if items are overlapping
Iterate over everything in the array in which the given time overlaps with the time and duration time of the event.
.forEachFrom ( )#
The time to check if items are before
Iterate over everything in the array in which the time is greater than or equal to the given time.
.get ( )#
The event to add to the timeline
The event which spans the desired time
Get an event whose time and duration span the give time. Will return the match whose “time” value is closest to the given time.