sendPitchBend method

  1. @override
Future<void> sendPitchBend({
  1. required int value,
  2. int channel = 0,
})
override

Send a pitch bend message value - Pitch bend value (-8192 to 8191, 0 is center) channel - MIDI channel (0-15)

Implementation

@override
Future<void> sendPitchBend({
  required int value,
  int channel = 0,
}) async {
  // -8192..8191 to the 14-bit 0..16383 range, 8192 = no bend.
  _ready?.pitchWheel(channel, (value + 8192).clamp(0, 16383));
}