noteOff method

void noteOff({
  1. required int channel,
  2. required int key,
})

Implementation

void noteOff({required int channel, required int key}) {
  if (!(0 <= channel && channel < channels.length)) {
    return;
  }

  for (Voice voice in _voices) {
    if (voice.channel() == channel && voice.key() == key) {
      voice.end();
    }
  }
}