From f3b21cc75fec9273b9f111649092bb393fce255b Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Sat, 30 Jan 2021 23:03:44 +0200 Subject: [PATCH] fix(tracker): update sequencer patch when instrument deleted --- tracker/tracker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tracker/tracker.go b/tracker/tracker.go index 95e83a3..6567661 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -220,6 +220,7 @@ func (t *Tracker) DeleteInstrument() { if t.CurrentInstrument >= len(t.song.Patch.Instruments) { t.CurrentInstrument = len(t.song.Patch.Instruments) - 1 } + t.sequencer.SetPatch(t.song.Patch) } // SetCurrentNote sets the (note) value in current pattern under cursor to iv