<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">&lt;<a href="mailto:craig@blackpagedigital.com" target="_blank">craig@blackpagedigital.com</a>&gt;</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>
&gt; recently the Cog VM on Mac OS X moved to Cocoa, the Objective-C API<br>
&gt; for the platform, leaving behind the old Carbon C API.  There is some<br>
&gt; backward compatibility support but it is gradually being deprecated by<br>
&gt; Apple.  One victim is the MIDIPlugin which was written against a<br>
&gt; ComponentManager API that, while Apple docs say is only deprecated,<br>
&gt; has actually disappeared.  Consequently the MIDIPlugin support<br>
&gt; (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>
&gt; /iOS/plugins/MIDIPlugin) needs completely rewriting to use Cocoa<br>
&gt; APIs.  I&#39;ve recently changed the build so that the MIDIPlgin is built<br>
&gt; externally, which will make it easier to work on; one doesn&#39;t need to<br>
&gt; build the entire VM, only the plugin.  I&#39;m looking for volunteers who<br>
&gt; a) love music/know MIDI<br>
&gt; b) are happy programming at the Objective-C level using command-line<br>
&gt; builds and perhaps Xcode, but more immediately lldb for debugging.<br>
&gt;<br>
&gt; If interested, reply to vm-dev and we can continue discussions there;<br>
&gt; there are folks that can help with Mac OS support, but no one I know<br>
&gt; of that has time to write this rather important plugin for multi-<br>
</span>&gt; 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&#39;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&#39;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&#39;s suggestion of reimplementing the MIDIPlugin&#39;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>