setTempo method
Implementation
setTempo(int tempo) {
this._clockTimer.cancel();
this._clockTimer = Timer.periodic(
Duration(milliseconds: (60000 / (tempo * 24)).round()), (timer) {
this
._midiCommand
.sendData(Uint8List.fromList([248]), deviceId: this.device.id);
});
}