mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-20 07:03:30 -05:00
fix(tracker): update sequencer patch when instrument deleted
This commit is contained in:
@ -220,6 +220,7 @@ func (t *Tracker) DeleteInstrument() {
|
|||||||
if t.CurrentInstrument >= len(t.song.Patch.Instruments) {
|
if t.CurrentInstrument >= len(t.song.Patch.Instruments) {
|
||||||
t.CurrentInstrument = len(t.song.Patch.Instruments) - 1
|
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
|
// SetCurrentNote sets the (note) value in current pattern under cursor to iv
|
||||||
|
|||||||
Reference in New Issue
Block a user