From adc12dde4f3e7360275c779d1ae1b0bc641a35bb Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Thu, 11 Mar 2021 21:45:00 +0200 Subject: [PATCH] fix(tracker): when creating a new track, a pattern full of noteoffs was created Creating such patterns is unnecessary and was a relic of the past. We can leave the order completely uninitialized and let the user fill it as needed. Related to #54. --- tracker/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/model.go b/tracker/model.go index c4af026..a970e17 100644 --- a/tracker/model.go +++ b/tracker/model.go @@ -192,7 +192,7 @@ func (m *Model) AddTrack(after bool) { copy(newTracks[m.cursor.Track+1:], m.song.Score.Tracks[m.cursor.Track:]) newTracks[m.cursor.Track] = sointu.Track{ NumVoices: 1, - Patterns: [][]byte{make([]byte, m.song.Score.RowsPerPattern)}, + Patterns: [][]byte{}, } m.song.Score.Tracks = newTracks m.clampPositions()