preparePitchBend method

Uint8List preparePitchBend(
  1. int value
)

Prepares a Pitch Bend message (0xE0) for this channel.

The value is split into LSB and MSB before being sent.

Implementation

Uint8List preparePitchBend(int value) {
  final lsb = value & 0x7F;
  final msb = (value >> 7) & 0x7F;
  return Uint8List.fromList([0xE0 | channel, lsb, msb]);
}