send method
Send the message bytes to all connected devices
Implementation
@override
void send() {
parameter = parameter.clamp(0, 16383);
int parameterMSB = parameter ~/ 128;
int parameterLSB = parameter & 0x7F;
value = value.clamp(0, 16383);
int valueMSB = value ~/ 128;
int valueLSB = value & 0x7F;
data = Uint8List(9);
// Data Entry MSB
data[0] = 0xB0 + channel;
data[1] = 0x63;
data[2] = parameterMSB;
// Data Entry LSB
data[3] = 0x62;
data[4] = parameterLSB;
// Data Value MSB
data[5] = 0x06;
data[6] = valueMSB;
// Data Value LSB
data[7] = 0x26;
data[8] = valueLSB;
super.send();
}