Skip to content

@liminal-hq/undertone / ScoreEvent

Interface: ScoreEvent ​

Defined in: score.ts:16

One note in a score. Times are whole ticks, so they stay exact.

Properties ​

gate? ​

optional gate?: number

Defined in: score.ts:24

Key-down length in ticks (default 1). The instrument's release rings on after it.


level? ​

optional level?: number

Defined in: score.ts:26

Strength, as the velocity control.


midi? ​

optional midi?: number

Defined in: score.ts:22

MIDI note number, as an alternative to note.


note? ​

optional note?: string | number

Defined in: score.ts:20

Pitch as a note name ("e4") or Hz — or give midi instead.


pan? ​

optional pan?: number

Defined in: score.ts:28

Stereo position, -1 to 1.


tick ​

tick: number

Defined in: score.ts:18

Onset, in ticks from the start of the cue (0 up to but not including lengthTicks).


voice? ​

optional voice?: ControlPatch

Defined in: score.ts:30

Any further voice controls for this one note, such as an instrument from fmVoice().