From 89b0f20f0f68f32d875e43d6f88b77d71959831c Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Wed, 21 Jan 2026 15:58:09 -0800 Subject: [PATCH] fix instrument LFOs in simulator synth playback (#11061) --- pxtsim/sound/song.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] }