<div dir="ltr">Hi Craig,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 12, 2016 at 6:22 AM, Craig Latta <span dir="ltr"><<a href="mailto:craig@blackpagedigital.com" target="_blank">craig@blackpagedigital.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Hi Eliot--<br>
<span class=""><br>
> recently the Cog VM on Mac OS X moved to Cocoa, the Objective-C API<br>
> for the platform, leaving behind the old Carbon C API. There is some<br>
> backward compatibility support but it is gradually being deprecated by<br>
> Apple. One victim is the MIDIPlugin which was written against a<br>
> ComponentManager API that, while Apple docs say is only deprecated,<br>
> has actually disappeared. Consequently the MIDIPlugin support<br>
> (see <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/platforms" rel="noreferrer" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog/platforms</a><br>
> /iOS/plugins/MIDIPlugin) needs completely rewriting to use Cocoa<br>
> APIs. I've recently changed the build so that the MIDIPlgin is built<br>
> externally, which will make it easier to work on; one doesn't need to<br>
> build the entire VM, only the plugin. I'm looking for volunteers who<br>
> a) love music/know MIDI<br>
> b) are happy programming at the Objective-C level using command-line<br>
> builds and perhaps Xcode, but more immediately lldb for debugging.<br>
><br>
> If interested, reply to vm-dev and we can continue discussions there;<br>
> there are folks that can help with Mac OS support, but no one I know<br>
> of that has time to write this rather important plugin for multi-<br>
</span>> media. It would be a great shame to lose MIDI on Mac.<br>
<br>
Perhaps this is an opportunity to reduce the platform code fanout a<br>
bit. I've had good results with Squeak MIDI before on Mac, Windows, and<br>
Linux, by making a VM plugin from the platform-independent PortMedia<br>
libraries (PortAudio and PortMidi), at [1]. Perhaps it would make sense<br>
to use PortMedia in combination with FFI/Alien these days.<br></blockquote><div><br></div><div>I'm a bit wary of using it on linux because it claims to be implemented above ALSA and IME ALSA is poor, especially w.r.t. signals. But it looks like a good solution for Mac and Win.</div><div><br></div><div>Is there anything to stop you following Bert's suggestion of reimplementing the MIDIPlugin's support in terms of PortMIDI?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-C<br>
<br>
[1] <a href="http://portmedia.sourceforge.net" rel="noreferrer" target="_blank">http://portmedia.sourceforge.net</a><br>
<br>
--<br>
Craig Latta<br>
Black Page Digital<br>
Amsterdam<br>
<a href="mailto:craig@blackpagedigital.com">craig@blackpagedigital.com</a><br>
<a href="tel:%2B31%20%20%206%202757%207177" value="+31627577177">+31 6 2757 7177</a> (SMS ok)<br>
<a href="tel:%2B%201%20415%20%20287%203547" value="+14152873547">+ 1 415 287 3547</a> (no SMS)<br>
</blockquote></div><br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>