wip: input
This commit is contained in:
parent
8bc257f67f
commit
c576106779
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue