diff --git a/pxtsim/sound/song.ts b/pxtsim/sound/song.ts index 4a816612e583..2fff953692d8 100644 --- a/pxtsim/sound/song.ts +++ b/pxtsim/sound/song.ts @@ -302,11 +302,11 @@ namespace pxsim.music { }, ampLFO: { frequency: buf[offset + 21], - amplitude: get16BitNumber(buf, 22) + amplitude: get16BitNumber(buf, offset + 22) }, pitchLFO: { frequency: buf[offset + 24], - amplitude: get16BitNumber(buf, 25) + amplitude: get16BitNumber(buf, offset + 25) }, octave: buf[offset + 27] }