https://github.com/nitrologic/m2/tree/master/modules
Currently only supports Midi In on MacOS.
Windows and Linux support once testing is complete (today I hope).
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#Import "<std>" #Import "<mojo>" #Import "<portmidi>" Using std.. Using portmidi.. Function Main() Print "PortMidi test 0.1" Print "Scanning Midi Bus, please wait." Local portMidi:=New PortMidi() Local counter:Int While True While portMidi.Poll() Print portMidi.EventData() Wend portMidi.Sleep(1.0/60) Wend End |
I’d like to make a realtime midi in/out sequencer for Android, when the time comes. How is Monkey 2 with accurate timing?
]]>A native mobilemidi module could share a common midi namespace with portmidi module so from Monkey2 app development the receiving / sending midi over OSC and bluetooth could be nice and simple.
As for timing, I plan to start running multiple processes per app. At present sharing the main thread with an SDL2 window rendering loop is not ideal.
On Android separation of render and gui threads is enforced so it will be interesting to see how SDL2 behaves in this environment.
]]>I hope that MX2 will turn out to be a platform where music timing, will be possible.
I’d like to be able to create procedural sound, mix and sync with rendering.
]]>