<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:ent="http://www.purl.org/NET/ENT/1.0/" version="2.0">
  <channel>
    <title>Curiouser and Curiouser! on core-audio</title>
    <link>http://matt.blogs.it/</link>
    <description>RSS feed for topic core-audio</description>
    <copyright>Copyright 2008 Matt Mower. Some rights reserved.</copyright>
    <generator>Squib/0.5.0.382</generator>
    <managingEditor>self@mattmower.com</managingEditor>
    <webMaster>self@mattmower.com</webMaster>
    <language>en-gb</language>
    <item>
      <title>Hard going</title>
      <link>http://matt.blogs.it/entries/00002872.html</link>
      <pubDate>Thu, 26 Jun 2008 23:17:02 +0100</pubDate>
      <description>&lt;p&gt;I've spent about an hour this evening looking at the Apple developer documentation trying to figure out how to play music. By that I mean how to play musical notes through the (presumed) software synthesizer. I did this quite easily a few years ago with JavaSound but I'm not making much headway here. Even by Apple standards the documentation is terse and opaque.&lt;/p&gt;

&lt;p&gt;Just to clarify that last statement I don't mean to suggest that Apple docs are especially bad but they're often little more than a thin wrapper around method and argument names, there is often little in the way of context or example usage. Unless you more or less know what you're doing it's often tough to figure it out from the Apple docs.&lt;/p&gt;

&lt;p&gt;In this case I guess I want to use Core Midi with a software instrument. Maybe. Apparently I should have a (or maybe several) sound bank in &lt;code&gt;/Library/Audio/Sounds/Banks/&lt;/code&gt; but my cupboard is bare.&lt;/p&gt;

&lt;p&gt;Nevertheless Apple supplies one example that appears to be headed in the right direction: PlaySoftMIDI. Bizarrely in these days of Cocoa marching foreward this is a C++ program and.. Carbon? I dunno. It's definitely not friendly Objective-C and Cocoa.&lt;/p&gt;

&lt;p&gt;Also my heart did not sing as I read the opening comments:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;// This is a simple test case of making an simple graph with a DLSSynth, Limiter and Ouput unit
// we're going to use a graph because its easier for it to just handle the setup and connections, etc...
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You what now?&lt;/p&gt;

&lt;p&gt;If anyone knows of any good Cocoa based examples of using CoreAudio or CoreMidi to generate music (i.e. playing notes, not playing MP3 files) I'd be very interested.&lt;/p&gt;</description>
      <guid isPermaLink="true">http://matt.blogs.it/entries/00002872.html</guid>
      <ent:cloud ent:href="http://matt.blogs.it/topics/">
      </ent:cloud>
    </item>
  </channel>
</rss>