Return the total number of time steps in the performance.
The total number of steps.
Set the total number of time steps in the performance by either adding time-shift events to the end or truncating.
Convert this performance representation to NoteSequence
.
Instrument value to give each note.
A NoteSequence
corresponding to these performance events.
Extract a performance from a NoteSequence
.
NoteSequence
from which to extract a performance.
Number of steps in maximum time shift.
Number of velocity bins to use. If zero, ignore note velocities.
(Optional) Instrument to extract. If not specified, extract all instruments.
A Performance
created from the NoteSequence
.
Generated using TypeDoc
Performance representation with variable step size, consisting of a sequence of
NoteOn
,NoteOff
,TimeShift
, andVelocityChange
events.An array of performance events.
Number of steps in the maximum time shift.
The number of quantized MIDI velocity bins to use. If zero, velocities will be ignored.
(Optional) The MIDI program to use for these events.
(Optional) Whether or not these are drum events.