final class AuralPatternObj[T <: Txn[T], I1 <: Txn[I1]] extends AuralStreamLikeObj[T, I1, Pattern[T]]
- Self Type
- AuralPatternObj[T, I1]
- Alphabetic
- By Inheritance
- AuralPatternObj
- AuralStreamLikeObj
- AuralObj
- AuralScheduledBase
- ObservableImpl
- ObjViewBase
- AuralViewBase
- ViewBase
- Disposable
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AuralPatternObj(objH: Source[T, Pattern[T]], tree: SkipOctree[I1, LongPoint2DLike, LongSquare, (SpanLike, Vec[AuralObj[T]])])(implicit context: AuralContext[T], iSys: (T) => I1)
Type Members
- type Elem = AuralObj[T]
- Definition Classes
- AuralStreamLikeObj
- type ElemHandle = impl.AuralStreamLikeObj.ElemHandle[T, Elem]
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final class IPlaying extends ITimedState
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final class IPreparing extends ITimedState
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- sealed trait ITimedState extends InternalState
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- sealed trait InternalState extends Disposable[T]
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- type Model = (Event, lucre.Obj[T])
An opaque type coming out of
processPrepare
and ending up inmkView
andelemAdded
.An opaque type coming out of
processPrepare
and ending up inmkView
andelemAdded
. TypicallyObj[T]
.- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- type PrepareResult = (ViewId, SpanLike, Model)
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- type Repr = Pattern[T]
- Definition Classes
- AuralStreamLikeObj → ObjViewBase → AuralViewBase
- type St = (patterns.Stream[I1, Any], Context[T, I1])
- Attributes
- protected
- Definition Classes
- AuralPatternObj → AuralStreamLikeObj
- type Target = Unit
- Definition Classes
- AuralStreamLikeObj
- type ViewId = Unit
An opaque type passed into
playView
that may be used by an overriding implementation.An opaque type passed into
playView
that may be used by an overriding implementation. Otherwise it may simply be set toUnit
.- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def checkReschedule(h: ElemHandle, currentOffset: Long, oldTarget: Long, elemPlays: Boolean)(implicit tx: T): Boolean
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def childPreparedOrRemoved(childView: AuralObj[T])(implicit tx: T): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit val context: AuralContext[T]
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- def dispose()(implicit tx: T): Unit
Sub-classes may override this and call
super.dispose()
if they wish to free additional observers, e.g.Sub-classes may override this and call
super.dispose()
if they wish to free additional observers, e.g. the timeline or grapheme observer.- Definition Classes
- AuralScheduledBase → Disposable
- def disposeStream(st: St)(implicit tx: T): Unit
- Attributes
- protected
- Definition Classes
- AuralPatternObj → AuralStreamLikeObj
- final def elemAdded(vid: ViewId, span: SpanLike, obj: Model)(implicit tx: T): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def elemFromHandle(h: ElemHandle): Elem
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def elemRemoved(h: ElemHandle, elemPlays: Boolean)(implicit tx: T): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def fire(update: State)(implicit tx: T): Unit
- Attributes
- protected
- Definition Classes
- ObservableImpl
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit val iSys: (T) => I1
- Attributes
- protected
- def init(pat: Pattern[T])(implicit tx: T): AuralPatternObj.this.type
- final def internalState(implicit tx: T): InternalState
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def internalState_=(value: InternalState)(implicit tx: T): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeStream(patObj: Pattern[T])(implicit tx: T): St
- Attributes
- protected
- Definition Classes
- AuralPatternObj → AuralStreamLikeObj
- final def mkView(vid: Unit, span: SpanLike, m: Model)(implicit tx: T): ElemHandle
Should create a new view for the given object and return a handle to it.
Should create a new view for the given object and return a handle to it. As a side effect should also memorize the view in a view-tree, if such structure is maintained, for later retrieval in
viewEventAfter
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def modelEventAfter(offset: Long)(implicit tx: T): Long
Report the next interesting frame greater than the given frame for which
gridReached
(internal) andprocessPrepare
will be called.Report the next interesting frame greater than the given frame for which
gridReached
(internal) andprocessPrepare
will be called. If no such event exists, the method must returnLong.MaxValue
.- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def obj(implicit tx: T): Repr
- Definition Classes
- AuralStreamLikeObj → AuralViewBase
- def play()(implicit tx: T): Unit
- Definition Classes
- AuralObj
- final def playView(h: ElemHandle, timeRef: Option, target: Target)(implicit tx: T): Unit
Should be called from
processPlay
.Should be called from
processPlay
. It callsplay
on the view and adds it to the list of playing views. Note:timeRef
must already have been updated through appropriate intersection.Sub-classes may override this if they call
super.playView
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def prepare(timeRef: Option)(implicit tx: T): Unit
Prepares the view to be able to
run
.Prepares the view to be able to
run
.- timeRef
an optional context of temporal position
- Definition Classes
- AuralScheduledBase → AuralViewBase
- final def prepareSpan()(implicit tx: T): Span
Note: the prepare span will always start from current-frame and have a duration of at least
LOOK_STOP
.Note: the prepare span will always start from current-frame and have a duration of at least
LOOK_STOP
. I.e. during playback it contains the current play position.- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def processEvent(play: IPlaying, timeRef: TimeRef)(implicit tx: T): Unit
Called when a next interesting frame has been reached.
Called when a next interesting frame has been reached. The method should look for and invoke the events such as starting or stopping a view.
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def processPlay(timeRef: TimeRef, target: Target)(implicit tx: T): Unit
Called during
play
.Called during
play
. Sub-classes should intersect the current elements and for each of them callplayView
.- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def processPrepare(spanP: Span, timeRef: TimeRef, initial: Boolean)(implicit tx: T): Iterator[PrepareResult]
Called during preparation of armed elements.
Called during preparation of armed elements. This happens either during initial
prepare
or during grid-events. Given theprepareSpan
, the sub-class should- find the elements using an
intersect
- for each build a view and store it somewhere - for each view callprepareChild
- accumulate the results ofprepareChild
into aMap
that is returned.The map will become part of
IPreparing
.- initial
if
true
this is an initial preparation which means the method must include views that start beforespanP
if their span overlaps withspanP
. Iffalse
this is a follow up fromgridReached
and the search must be restricted to views that start no earlier thanspanP
.
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def react(fun: (T) => (State) => Unit)(implicit tx: T): Disposable[T]
Registers a live observer with this observable.
Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type
A
, and the method generates an opaqueDisposable
instance, which may be used to remove the observer eventually (through thedispose
method).- Definition Classes
- ObservableImpl → Observable
- final def reactNow(fun: (T) => (State) => Unit)(implicit tx: T): Disposable[T]
Like
react
, but also invokes the function with the current state immediately.Like
react
, but also invokes the function with the current state immediately.- Definition Classes
- ViewBase
- final def run(timeRef: Option, target: Unit)(implicit tx: T): Unit
Ensures state is consistent, then checks preparation of children.
Ensures state is consistent, then checks preparation of children. If all is good, sets internal state to
IPlaying
and callsprocessPlay
. Next instructs scheduler and sets external state toPlaying
.- Definition Classes
- AuralScheduledBase → AuralViewBase
- final def scheduledEvent()(implicit tx: T): Scheduled
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def scheduledGrid()(implicit tx: T): Scheduled
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- final def state(implicit tx: T): State
- Definition Classes
- AuralScheduledBase → ViewBase
- final def stop()(implicit tx: T): Unit
- Definition Classes
- AuralScheduledBase → ViewBase
- final def stopView(h: ElemHandle)(implicit tx: T): Unit
Should be called from
processEvent
for views that should be stopped and disposed.Should be called from
processEvent
for views that should be stopped and disposed. The caller is responsible for removing the view also from a view-tree if such structure is maintained. NOT: This method ends by callingviewRemoved
.- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def stopViews()(implicit tx: T): Unit
Stops and disposes all currently playing views.
Stops and disposes all currently playing views.
- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- def streamHasNext(st: St)(implicit tx: T): Boolean
- Attributes
- protected
- Definition Classes
- AuralPatternObj → AuralStreamLikeObj
- def streamNext(st: St)(implicit tx: T): Any
- Attributes
- protected
- Definition Classes
- AuralPatternObj → AuralStreamLikeObj
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def targetOption(implicit tx: T): Option[Unit]
- Definition Classes
- AuralScheduledBase
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tpe: Type
- Definition Classes
- AuralPatternObj → ObjViewBase
- final def viewEventAfter(offset: Long)(implicit tx: T): Long
Report the next interesting frame greater than the given frame for which
eventReached
(internal) andprocessEvent
will be called.Report the next interesting frame greater than the given frame for which
eventReached
(internal) andprocessEvent
will be called. If no such event exists, the method must returnLong.MaxValue
.- Attributes
- protected
- Definition Classes
- AuralStreamLikeObj → AuralScheduledBase
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object IStopped extends InternalState with Product with Serializable
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated