reset method

void reset()

Clears parser state (running status, SysEx buffer, NRPN/RPN context).

Implementation

void reset() {
  _runningStatus = null;
  _currentStatus = null;
  _expectedDataLength = 0;
  _currentData.clear();
  _insideSysEx = false;
  _sysexBuffer.clear();
  for (final state in _channelStates) {
    state.clear();
  }
}