@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?
optionalgate?:number
Defined in: score.ts:24
Key-down length in ticks (default 1). The instrument's release rings on after it.
level?
optionallevel?:number
Defined in: score.ts:26
Strength, as the velocity control.
midi?
optionalmidi?:number
Defined in: score.ts:22
MIDI note number, as an alternative to note.
note?
optionalnote?:string|number
Defined in: score.ts:20
Pitch as a note name ("e4") or Hz — or give midi instead.
pan?
optionalpan?: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?
optionalvoice?:ControlPatch
Defined in: score.ts:30
Any further voice controls for this one note, such as an instrument from fmVoice().