summaryrefslogtreecommitdiff
path: root/scripts/synth1.lua
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-29 20:36:16 +0200
committerRobin Gareus <robin@gareus.org>2016-05-29 20:36:32 +0200
commit39e818a03afdf76a123bb802f020008276646708 (patch)
tree79e73fd6399cd415cc11c1540b5a53e10c864d46 /scripts/synth1.lua
parent60200bf92300388d2b0d002559a3db1b544d9705 (diff)
prototype lua midi generators & filters and port event-rewrite
Diffstat (limited to 'scripts/synth1.lua')
-rw-r--r--scripts/synth1.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/synth1.lua b/scripts/synth1.lua
index 99a5e4d6c8..9d04e29ec1 100644
--- a/scripts/synth1.lua
+++ b/scripts/synth1.lua
@@ -21,7 +21,7 @@ function dsp_ioconfig ()
}
end
-function dsp_midi_input ()
+function dsp_has_midi_input ()
return true
end
@@ -70,8 +70,8 @@ function dsp_run (ins, outs, n_samples)
local tme = 1
-- parse midi messages
- assert (type(mididata) == "table") -- global table of midi events (for now)
- for _,b in pairs (mididata) do
+ assert (type(midiin) == "table") -- global table of midi events (for now)
+ for _,b in pairs (midiin) do
local t = b["time"] -- t = [ 1 .. n_samples ]
-- synth sound until event