mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-16 13:13:28 -05:00
fix(tracker): reset Player.prevVal when new recording is started
This commit is contained in:
parent
e66ff8be9f
commit
942da94982
@ -316,6 +316,7 @@ loop:
|
||||
case RecordingMsg:
|
||||
if m.bool {
|
||||
p.recording = Recording{State: RecordingWaitingForNote}
|
||||
p.prevVal = p.prevVal[:0] // reset prevVal, so that instruments configured to respond only to changes in values would trigger correctly in the new recording
|
||||
} else {
|
||||
if p.recording.State == RecordingStarted && len(p.recording.Events) > 0 {
|
||||
p.recording.Finish(p.frame, p.frameDeltas)
|
||||
|
||||
Reference in New Issue
Block a user