midiPitchBendNow method

void midiPitchBendNow({
  1. required double value,
})

Handles a MIDI pitch bend event on this track immediately. The event will not be added to this track's events.

Implementation

void midiPitchBendNow({required double value}) {
  final nextBeat = sequence.getBeat();
  final event = MidiEvent.pitchBend(beat: nextBeat, value: value);

  NativeBridge.handleEventsNow(
      id, [event], Sequence.globalState.sampleRate!, sequence.tempo);
}