static void Play(MelodySequence notes, PatchNames instrument = PatchNames.Vibraphone) { MusicPlayer player = new MusicPlayer(); player.SetPatch((int)instrument, 1); player.Play(notes); player.Close(); }
static void Play(IEnumerable<Note> notes, PatchNames instrument = PatchNames.Vibraphone) { MusicPlayer player = new MusicPlayer(); player.SetPatch((int)instrument, 1); player.PlayNotes(notes); player.Close(); }