Packages

final class AuralPatternAttribute[S <: Sys[S], I1 <: Sys[I1]] extends AuralScheduledBase[S, Target[S], View[S]] with AuralAttribute[S]

Self Type
AuralPatternAttribute[S, I1]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AuralPatternAttribute
  2. AuralAttribute
  3. AuralScheduledBase
  4. ObservableImpl
  5. ObjViewBase
  6. ViewBase
  7. Disposable
  8. Observable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AuralPatternAttribute(key: String, objH: Source[S.Tx, Pattern[S]], observer: Observer[S], tree: Map[I1, Long, View[S]])(implicit context: AuralContext[S], system: S { type I = I1 }, iSys: (S.Tx) ⇒ I1.Tx)

Type Members

  1. type Elem = View[S]
  2. type ElemHandle = View[S]
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  3. final class IPlaying extends ITimedState
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  4. final class IPreparing extends ITimedState
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  5. sealed trait ITimedState extends InternalState
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  6. sealed trait InternalState extends Disposable[synth.proc.impl.AuralScheduledBase.S.Tx]
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  7. type Model = View[S]

    An opaque type coming out of processPrepare and ending up in mkView and elemAdded.

    An opaque type coming out of processPrepare and ending up in mkView and elemAdded. Typically Obj[S].

    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  8. type PrepareResult = (ViewId, SpanLike, Model)
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  9. type Target = synth.proc.AuralAttribute.Target[S]
  10. 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 to Unit.

    Definition Classes
    AuralPatternAttribute → AuralScheduledBase

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkReschedule(h: ElemHandle, currentOffset: Long, oldTarget: Long, elemPlays: Boolean)(implicit tx: S.Tx): Boolean
    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  6. final def childPreparedOrRemoved(childView: View[S])(implicit tx: S.Tx): Unit
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. implicit val context: AuralContext[S]
    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  9. def dispose()(implicit tx: S.Tx): 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
  10. final def elemAdded(vid: ViewId, span: SpanLike, obj: Model)(implicit tx: S.Tx): Unit
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  11. def elemFromHandle(h: ElemHandle): Elem
    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  12. final def elemRemoved(h: ElemHandle, elemPlays: Boolean)(implicit tx: S.Tx): Unit
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def fire(update: State)(implicit tx: S.Tx): Unit
    Attributes
    protected
    Definition Classes
    ObservableImpl
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. implicit val iSys: (S.Tx) ⇒ I1.Tx
    Attributes
    protected
  20. def init(pat: Pattern[S])(implicit tx: S.Tx): AuralPatternAttribute.this.type
  21. final def internalState(implicit tx: S.Tx): InternalState
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  22. final def internalState_=(value: InternalState)(implicit tx: S.Tx): Unit
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val key: String
    Definition Classes
    AuralPatternAttributeAuralAttribute
  25. def mkView(vid: Unit, span: SpanLike, obj: Model)(implicit tx: S.Tx): 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
    AuralPatternAttribute → AuralScheduledBase
  26. def modelEventAfter(offset: Long)(implicit tx: S.Tx): Long

    Report the next interesting frame greater than the given frame for which gridReached (internal) and processPrepare will be called.

    Report the next interesting frame greater than the given frame for which gridReached (internal) and processPrepare will be called. If no such event exists, the method must return Long.MaxValue.

    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. val objH: Source[S.Tx, Pattern[S]]

    The view must store a handle to its underlying model.

    The view must store a handle to its underlying model.

    Definition Classes
    AuralPatternAttributeObjViewBase
  31. def playView(h: ElemHandle, timeRef: Option, target: synth.proc.AuralAttribute.Target[S])(implicit tx: S.Tx): Unit

    Should be called from processPlay.

    Should be called from processPlay. It calls play 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
    AuralPatternAttribute → AuralScheduledBase
  32. def preferredNumChannels(implicit tx: S.Tx): Int

    Or -1 if the number of channels cannot be determined.

    Or -1 if the number of channels cannot be determined.

    Definition Classes
    AuralPatternAttributeAuralAttribute
  33. final def prepare(timeRef: Option)(implicit tx: S.Tx): Unit
    Definition Classes
    AuralScheduledBase → ViewBase
  34. final def prepareSpan()(implicit tx: S.Tx): 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
  35. def processEvent(play: IPlaying, timeRef: TimeRef)(implicit tx: S.Tx): 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
    AuralPatternAttribute → AuralScheduledBase
  36. def processPlay(timeRef: TimeRef, target: Target)(implicit tx: S.Tx): Unit

    Called during play.

    Called during play. Sub-classes should intersect the current elements and for each of them call playView.

    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  37. def processPrepare(spanP: Span, timeRef: TimeRef, initial: Boolean)(implicit tx: S.Tx): 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 the prepareSpan, the sub-class should

    - find the elements using an intersect - for each build a view and store it somewhere - for each view call prepareChild - accumulate the results of prepareChild into a Map that is returned.

    The map will become part of IPreparing. (NOT: The returned Boolean indicates if elements were found (true) or not (false)).

    initial

    if true this is an initial preparation which means the method must include views that start before prepareSpan if their span overlaps with prepareSpan. If false this is a follow up from gridReached and the search must be restricted to views that start no earlier than prepareSpan.

    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  38. final def react(fun: (S.Tx) ⇒ (State) ⇒ Unit)(implicit tx: S.Tx): Disposable[S.Tx]

    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 opaque Disposable instance, which may be used to remove the observer eventually (through the dispose method).

    Definition Classes
    ObservableImpl → Observable
  39. def reactNow(fun: (S.Tx) ⇒ (State) ⇒ Unit)(implicit tx: S.Tx): Disposable[S.Tx]
    Definition Classes
    ViewBase
  40. final def run(timeRef: Option, target: synth.proc.AuralAttribute.Target[S])(implicit tx: S.Tx): 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 calls processPlay. Next instructs scheduler and sets external state to Playing.

    Definition Classes
    AuralScheduledBase → ViewBase
  41. final def scheduledEvent()(implicit tx: S.Tx): Scheduled
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  42. final def scheduledGrid()(implicit tx: S.Tx): Scheduled
    Attributes
    protected
    Definition Classes
    AuralScheduledBase
  43. final def state(implicit tx: S.Tx): State
    Definition Classes
    AuralScheduledBase → ViewBase
  44. final def stop()(implicit tx: S.Tx): Unit
    Definition Classes
    AuralScheduledBase → ViewBase
  45. def stopView(h: ElemHandle)(implicit tx: S.Tx): 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 calling viewRemoved.

    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  46. def stopViews()(implicit tx: S.Tx): Unit

    Stops and disposes all currently playing views.

    Stops and disposes all currently playing views.

    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  47. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  48. final def targetOption(implicit tx: S.Tx): Option[synth.proc.AuralAttribute.Target[S]]
    Definition Classes
    AuralScheduledBase
  49. def toString(): String
    Definition Classes
    AnyRef → Any
  50. def tpe: Type
    Definition Classes
    AuralPatternAttributeObjViewBase
  51. def viewEventAfter(offset: Long)(implicit tx: S.Tx): Long

    Report the next interesting frame greater than the given frame for which eventReached (internal) and processEvent will be called.

    Report the next interesting frame greater than the given frame for which eventReached (internal) and processEvent will be called. If no such event exists, the method must return Long.MaxValue.

    Attributes
    protected
    Definition Classes
    AuralPatternAttribute → AuralScheduledBase
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  55. object IStopped extends InternalState with Product with Serializable
    Attributes
    protected
    Definition Classes
    AuralScheduledBase

Inherited from AuralAttribute[S]

Inherited from AuralScheduledBase[S, synth.proc.AuralAttribute.Target[S], View[S]]

Inherited from ObservableImpl[S, State]

Inherited from Disposable[S.Tx]

Inherited from Observable[S.Tx, State]

Inherited from AnyRef

Inherited from Any

Ungrouped