diff --git a/assets/scene_app/piano.lua b/assets/scene_app/piano.lua index 9a1e6b9d..48848a5c 100644 --- a/assets/scene_app/piano.lua +++ b/assets/scene_app/piano.lua @@ -13,6 +13,40 @@ local inst,offset,release local instList={'organ_wave','square_wave','saw_wave','complex_wave','stairs_wave','spectral_wave'} local presets={} +local scrollSpeed=620 +local disappearDist=-800 +presets.synthNote={} +---@return Techmino.Piano.Object +function presets.synthNote.newNote() + return { + len=0, + free=false, + _type='synthNote', + _update=function(self,dt) + local dSize=dt*scrollSpeed + self.y=self.y-dSize + if self.free then + return self.y+self.len