About Monkey 2 › Forums › Monkey 2 Projects › portmidi module
Tagged: Extern
This topic contains 7 replies, has 4 voices, and was last updated by
CopperCircle
2 years, 5 months ago.
-
AuthorPosts
-
June 30, 2016 at 12:35 am #1283
I just got my second module working as opposed to just compiling.
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).
Monkey12345678910111213141516171819202122232425#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:IntWhile TrueWhile portMidi.Poll()Print portMidi.EventData()WendportMidi.Sleep(1.0/60)WendEndJune 30, 2016 at 1:15 pm #1393Great. Will this do Midi on android too?
I’d like to make a realtime midi in/out sequencer for Android, when the time comes. How is Monkey 2 with accurate timing?
June 30, 2016 at 9:02 pm #1424PortMIDI is desktop only.
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.
June 30, 2016 at 11:36 pm #1444Nice work. I’d like to see some decent tutorials on externs in MX2 though. I’m wrapping some existing code at the moment (which builds), but my test program refuses to link, even though it’s clearly including the .a file (OS X, El Capitan).
July 15, 2016 at 4:26 pm #2167@Simon: Hi again, Thanks for explaining.
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.
October 24, 2016 at 7:54 pm #4620@Simon, Hi could you upload this module to the module manager? the git hub page is a 404 now. Thanks.
October 26, 2016 at 7:05 pm #4651Sorry about the delay, it should be there now.
October 27, 2016 at 8:41 am #4663Thanks
-
AuthorPosts
You must be logged in to reply to this topic.