Option

sealed
trait Option

A time reference specifies the temporal context within which an aural object is invoked. It may be either undefined (there is no notion of pointers in virtual performance time), or defined by a span for the invoked object and a time frame corresponding to the current position.

class Object
trait Matchable
class Any
object Undefined
class TimeRef

Value members

Abstract methods

If the reference is undefined, translates it into a defined one beginning at zero with a span from zero. Otherwise returns the reference unmodified.

If the reference is undefined, translates it into a defined one beginning at zero with a span from zero. Otherwise returns the reference unmodified.

def hasEnded: Boolean

true for a TimeRef whose offset is smaller than its span start, false for TimeRef.Undefined.

true for a TimeRef whose offset is smaller than its span start, false for TimeRef.Undefined.

def isDefined: Boolean

true for TimeRef, false for TimeRef.Undefined.

true for TimeRef, false for TimeRef.Undefined.

def offset: Long

Offsets within the logical span of the object. For an undefined time reference, this will report zero, otherwise it is equal to frame - span.start. If the span does not have a defined start, it will also report zero.

Offsets within the logical span of the object. For an undefined time reference, this will report zero, otherwise it is equal to frame - span.start. If the span does not have a defined start, it will also report zero.

def span: SpanLike

The overall played span.

The overall played span.