addMidiPitchBend method

void addMidiPitchBend({
  1. required double value,
  2. required double beat,
})

Adds a MIDI pitch bend event to this track. The value must be between -1 and 1. This does not sync the events to the backend.

Implementation

void addMidiPitchBend({required double value, required double beat}) {
  final pitchBendEvent = MidiEvent.pitchBend(beat: beat, value: value);

  _addEvent(pitchBendEvent);
}