From 1231a0805aca0070f589fdc3cf7ef002bbfd381d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 17 Mar 2018 21:13:06 +0100 Subject: Remove calls to deprecated Lua bitlib --- scripts/_midi_rec_start.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/_midi_rec_start.lua') diff --git a/scripts/_midi_rec_start.lua b/scripts/_midi_rec_start.lua index edd67eb7af..235609b037 100644 --- a/scripts/_midi_rec_start.lua +++ b/scripts/_midi_rec_start.lua @@ -21,7 +21,7 @@ function factory () local mb = midiport:get_midi_buffer (n_samples) -- get the midi-data buffers local events = mb:table () -- copy event list into lua table for _,e in pairs (events) do -- iterate over all events in the midi-buffer - if bit32.band (e:buffer():array()[1], 0xf0) == 0x90 then -- note on + if (e:buffer():array()[1] & 0xf0) == 0x90 then -- note on Session:maybe_enable_record (true) -- global record-enable from rt-context -- maybe-enable may fail if there are no tracks or step-entry is active -- roll transport if record-enable suceeded: -- cgit v1.2.3