Generate EDM (but the code is bad)

This commit is contained in:
pyrex committed 2024-03-16 19:38:02 -07:00
1 parent fa282184a9
commit da41c77dad
3 files changed
+186 -51

No files matched your search

+2 -1
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