public void Pause(bool immediate) { playing = false; if (immediate) synth.NoteOffAll(true); else synth.NoteOffAll(false); }