mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(sointu): the parameter name should have been "samplestart", not "start"
This commit is contained in:
parent
de402eaece
commit
482dd614c9
@ -37,7 +37,7 @@ func Encode(patch *sointu.Patch, featureSet FeatureSet) (*EncodedPatch, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if unit.Type == "oscillator" && unit.Parameters["type"] == 4 {
|
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]
|
index, ok := sampleOffsetMap[s]
|
||||||
if !ok {
|
if !ok {
|
||||||
index = len(c.SampleOffsets)
|
index = len(c.SampleOffsets)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user