addNote method
void
addNote({})
Adds a Note On and Note Off event to this track. This does not sync the events to the backend.
Implementation
void addNote(
{required int noteNumber,
required double velocity,
required double startBeat,
required double durationBeats}) {
addNoteOn(
noteNumber: noteNumber,
velocity: velocity,
beat: startBeat,
);
addNoteOff(
noteNumber: noteNumber,
beat: startBeat + durationBeats,
);
}