Options
All
  • Public
  • Public/Protected
  • All
Menu

When parsing a score, a UseContext is created for each event (character) in the score. Note that the .data property is created anew for each Clip (clips are created by pattern strings in the score).

Hierarchy

  • UseContext

Index

Properties

Optional clip

clip: Clip

the Clip that contains the current event

clipIndex

clipIndex: number

index of the clip within the track

d

d: DynamicObject

data

data: {}

data is a convenient place to store data between .use callbacks. One .data object will be created for each pattern string found in a score.

Type declaration

  • [key: string]: any

duration

duration: number

Event duration, measured in whole notes

durationSeconds

durationSeconds: number

eventIndex

eventIndex: number

index of the event within the clip.

session

session: FluidSession

The session containing this track, clip, and event

startTime

startTime: number

Event time measured in whole notes

startTimeSeconds

startTimeSeconds: number

track

track: FluidTrack

the Track that contains the current event