stop method

void stop (num when)

Implementation

void stop(num when) {
  if (JS('bool', '!!#.stop', this)) {
    JS('void', '#.stop(#)', this, when);
  } else {
    JS('void', '#.noteOff(#)', this, when);
  }
}