final class AuralPatternAttribute[S <: Sys[S], I1 <: Sys[I1]] extends AuralScheduledBase[S, Target[S], View[S]] with AuralAttribute[S]
- Self Type
- AuralPatternAttribute[S, I1]
- Alphabetic
- By Inheritance
- AuralPatternAttribute
- AuralAttribute
- AuralScheduledBase
- ObservableImpl
- ObjViewBase
- ViewBase
- Disposable
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
- type Elem = View[S]
-
type
ElemHandle = View[S]
- Definition Classes
- AuralPatternAttribute → 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[synth.proc.impl.AuralScheduledBase.S.Tx]
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
type
Model = View[S]
An opaque type coming out of
processPrepareand ending up inmkViewandelemAdded.An opaque type coming out of
processPrepareand ending up inmkViewandelemAdded. TypicallyObj[S].- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
type
PrepareResult = (ViewId, SpanLike, Model)
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
- type Target = synth.proc.AuralAttribute.Target[S]
-
type
ViewId = Unit
An opaque type passed into
playViewthat may be used by an overriding implementation.An opaque type passed into
playViewthat may be used by an overriding implementation. Otherwise it may simply be set toUnit.- Definition Classes
- AuralPatternAttribute → 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
-
def
checkReschedule(h: ElemHandle, currentOffset: Long, oldTarget: Long, elemPlays: Boolean)(implicit tx: S.Tx): Boolean
- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
final
def
childPreparedOrRemoved(childView: View[S])(implicit tx: S.Tx): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
implicit
val
context: AuralContext[S]
- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
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
-
final
def
elemAdded(vid: ViewId, span: SpanLike, obj: Model)(implicit tx: S.Tx): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
def
elemFromHandle(h: ElemHandle): Elem
- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
final
def
elemRemoved(h: ElemHandle, elemPlays: Boolean)(implicit tx: S.Tx): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fire(update: State)(implicit tx: S.Tx): Unit
- Attributes
- protected
- Definition Classes
- ObservableImpl
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
implicit
val
iSys: (S.Tx) ⇒ I1.Tx
- Attributes
- protected
- def init(pat: Pattern[S])(implicit tx: S.Tx): AuralPatternAttribute.this.type
-
final
def
internalState(implicit tx: S.Tx): InternalState
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
final
def
internalState_=(value: InternalState)(implicit tx: S.Tx): Unit
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
key: String
- Definition Classes
- AuralPatternAttribute → AuralAttribute
-
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
-
def
modelEventAfter(offset: Long)(implicit tx: S.Tx): Long
Report the next interesting frame greater than the given frame for which
gridReached(internal) andprocessPreparewill be called.Report the next interesting frame greater than the given frame for which
gridReached(internal) andprocessPreparewill be called. If no such event exists, the method must returnLong.MaxValue.- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
- AuralPatternAttribute → ObjViewBase
-
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 callsplayon the view and adds it to the list of playing views. Note:timeRefmust already have been updated through appropriate intersection.Sub-classes may override this if they call
super.playView- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
def
preferredNumChannels(implicit tx: S.Tx): Int
Or
-1if the number of channels cannot be determined.Or
-1if the number of channels cannot be determined.- Definition Classes
- AuralPatternAttribute → AuralAttribute
-
final
def
prepare(timeRef: Option)(implicit tx: S.Tx): Unit
- Definition Classes
- AuralScheduledBase → ViewBase
-
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
-
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
-
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 callplayView.- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
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
prepareor 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 ofprepareChildinto aMapthat is returned.The map will become part of
IPreparing. (NOT: The returnedBooleanindicates if elements were found (true) or not (false)).- initial
if
truethis is an initial preparation which means the method must include views that start beforeprepareSpanif their span overlaps withprepareSpan. Iffalsethis is a follow up fromgridReachedand the search must be restricted to views that start no earlier thanprepareSpan.
- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
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 opaqueDisposableinstance, which may be used to remove the observer eventually (through thedisposemethod).- Definition Classes
- ObservableImpl → Observable
-
def
reactNow(fun: (S.Tx) ⇒ (State) ⇒ Unit)(implicit tx: S.Tx): Disposable[S.Tx]
- Definition Classes
- ViewBase
-
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
IPlayingand callsprocessPlay. Next instructs scheduler and sets external state toPlaying.- Definition Classes
- AuralScheduledBase → ViewBase
-
final
def
scheduledEvent()(implicit tx: S.Tx): Scheduled
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
final
def
scheduledGrid()(implicit tx: S.Tx): Scheduled
- Attributes
- protected
- Definition Classes
- AuralScheduledBase
-
final
def
state(implicit tx: S.Tx): State
- Definition Classes
- AuralScheduledBase → ViewBase
-
final
def
stop()(implicit tx: S.Tx): Unit
- Definition Classes
- AuralScheduledBase → ViewBase
-
def
stopView(h: ElemHandle)(implicit tx: S.Tx): Unit
Should be called from
processEventfor views that should be stopped and disposed.Should be called from
processEventfor 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
- AuralPatternAttribute → AuralScheduledBase
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
targetOption(implicit tx: S.Tx): Option[synth.proc.AuralAttribute.Target[S]]
- Definition Classes
- AuralScheduledBase
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tpe: Type
- Definition Classes
- AuralPatternAttribute → ObjViewBase
-
def
viewEventAfter(offset: Long)(implicit tx: S.Tx): Long
Report the next interesting frame greater than the given frame for which
eventReached(internal) andprocessEventwill be called.Report the next interesting frame greater than the given frame for which
eventReached(internal) andprocessEventwill be called. If no such event exists, the method must returnLong.MaxValue.- Attributes
- protected
- Definition Classes
- AuralPatternAttribute → AuralScheduledBase
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
IStopped extends InternalState with Product with Serializable
- Attributes
- protected
- Definition Classes
- AuralScheduledBase