send method

void send(
  1. Uint8List midiMessage
)

Implementation

void send(Uint8List midiMessage) {
  final buffer = calloc<Uint8>(midiMessage.lengthInBytes);
  for (var i = 0; i < midiMessage.length; i++) {
    buffer[i] = midiMessage[i];
  }
  _send(buffer, midiMessage.length);
}