From 5033e8fa8e49ff2719868ec1bae6a51f05fa78b7 Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Sat, 30 Jan 2021 22:59:03 +0200 Subject: [PATCH] fix(sointu): remember to copy song.RowsPerPattern in .copy method --- sointu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sointu.go b/sointu.go index 4bdbf8e..6efbfa7 100644 --- a/sointu.go +++ b/sointu.go @@ -266,7 +266,7 @@ func (s *Song) Copy() Song { for i, t := range s.Tracks { tracks[i] = t.Copy() } - return Song{BPM: s.BPM, Tracks: tracks, Patch: s.Patch.Copy()} + return Song{BPM: s.BPM, RowsPerPattern: s.RowsPerPattern, Tracks: tracks, Patch: s.Patch.Copy()} } func (s *Song) SequenceLength() int {