Skip to content

Commit

Permalink
修piano小程序一个小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Nov 30, 2024
1 parent e08c2d2 commit 76e861d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/scene_app/piano.lua
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ function scene.keyDown(key,isRep,keyCode)
if layout.keyMap[keyCode] then
if isRep then return end
local note=layout.keyMap[keyCode]+offset
if isShiftDown() then note=note+1 end
if isCtrlDown() then note=note-1 end
if isKeyDown('lshift') then note=note+1 end
if isKeyDown('lctrl') then note=note-1 end
_param.tune=note-26
_param.volume=isKeyDown('lalt') and .26 or 1
_param.param[2]=(isKeyDown('space') and 4200 or release)*1.0594630943592953^(_param.tune)
Expand Down

0 comments on commit 76e861d

Please sign in to comment.