Generate EDM (but the code is bad)

This commit is contained in:
2024-03-16 19:38:02 -07:00
parent fa282184a9
commit da41c77dad
3 changed files with 186 additions and 51 deletions

View File

@ -8,6 +8,7 @@ function performer:init(track,channel,instrument,time,roots)
self.time=time
self.roots=roots
self.selected_root=1
self.offset=0
end
function performer:root(root)
@ -16,7 +17,7 @@ function performer:root(root)
end
function performer:play(duration,note,verbs)
local base=self.roots[self.selected_root]
local note=base+note
local note=base+note+self.offset
local t0=self.time
local t1=t0+duration
self.time+=duration