wip: input

This commit is contained in:
severak 2019-10-12 18:08:45 +02:00
parent 8bc257f67f
commit c576106779
2 changed files with 21 additions and 1 deletions

View File

@ -8,4 +8,5 @@ Windows only for now. Sorry.
- http://www.ccarh.org/courses/253/lab/midiprog/
- https://jimmenard.com/midi_ref.html
- http://boston.conman.org/2018/07/23.1
- http://boston.conman.org/2018/07/23.1
- https://gist.github.com/yoggy/1485181

19
midiwire/inptest.lua Normal file
View File

@ -0,0 +1,19 @@
local mw = require "midiwire"
print "ports:"
for i=0,mw.device_count()-1 do
print(i, mw.name(i))
end
port, err = mw.open_in(1)
if not port then
print("ERR " .. err)
return
end
while true do
io.stdout:write "."
mw.sleep(100)
-- chyta inputy
end