merge MixerActor API (back) into Mixer_UI; make solo/mute/recenable actions there...
[ardour.git] / scripts / synth1.lua
index 264d6dcb99e7cf9dc5467c2de1e2e1535b44207d..9d04e29ec12216dff5d2a229faaba5667ca535af 100644 (file)
@@ -1,6 +1,7 @@
 ardour {
        ["type"]    = "dsp",
        name        = "Simple Synth",
+       category    = "Instrument",
        license     = "MIT",
        author      = "Robin Gareus",
        email       = "robin@gareus.org",
@@ -20,7 +21,7 @@ function dsp_ioconfig ()
        }
 end
 
-function dsp_midi_input ()
+function dsp_has_midi_input ()
        return true
 end
 
@@ -69,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