Better version of 9ccc56e1625, implicit signal disconnect
[ardour.git] / scripts / _midifilter.lua
index d6a1c1f567e31f5e7884183d5986dd821ee7e902..48f61a827751ee988e2e95d20082eaedecc53079 100644 (file)
@@ -32,7 +32,7 @@ function dsp_run (_, _, n_samples)
 
                if (#d == 3 and event_type == 9) then -- note on
                        tx_midi (t, d)
-               elseif (#d == 3 and event_type = 8) then -- note off
+               elseif (#d == 3 and event_type == 8) then -- note off
                        tx_midi (t, d)
                end
        end