From d4082d8d5c4f2383b4f063c9a636ab592d57c47d Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Fri, 22 Nov 2024 05:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AEpiano=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=88=87=E5=B8=83=E5=B1=80=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=96=B9=E5=90=91=E4=BC=9A=E9=87=8D=E7=BD=AE=E7=89=A9=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scene_app/piano.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/scene_app/piano.lua b/assets/scene_app/piano.lua index bef8c6b0..00807484 100644 --- a/assets/scene_app/piano.lua +++ b/assets/scene_app/piano.lua @@ -468,6 +468,7 @@ function scene.keyDown(key,isRep,keyCode) stopAllSounds() layout=layoutData[(TABLE.find(layoutData,layout)-2)%#layoutData+1] elseif key=='f2' then + stopAllSounds() layout=layoutData[TABLE.find(layoutData,layout)%#layoutData+1] elseif key=='right' then offset=clamp(offset+(isKeyDown('left') and 0.5 or 1),-12,24)