From 482dd614c9746a07c8a22cdf018af38a949b862c Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Mon, 8 Feb 2021 19:24:27 +0200 Subject: [PATCH] fix(sointu): the parameter name should have been "samplestart", not "start" --- compiler/encoded_patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/encoded_patch.go b/compiler/encoded_patch.go index 6938fe5..a7a8d31 100644 --- a/compiler/encoded_patch.go +++ b/compiler/encoded_patch.go @@ -37,7 +37,7 @@ func Encode(patch *sointu.Patch, featureSet FeatureSet) (*EncodedPatch, error) { continue } if unit.Type == "oscillator" && unit.Parameters["type"] == 4 { - s := SampleOffset{Start: uint32(unit.Parameters["start"]), LoopStart: uint16(unit.Parameters["loopstart"]), LoopLength: uint16(unit.Parameters["looplength"])} + s := SampleOffset{Start: uint32(unit.Parameters["samplestart"]), LoopStart: uint16(unit.Parameters["loopstart"]), LoopLength: uint16(unit.Parameters["looplength"])} index, ok := sampleOffsetMap[s] if !ok { index = len(c.SampleOffsets)