<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Create Digital Music &#187; xcode</title>
	<atom:link href="http://createdigitalmusic.com/tag/xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://createdigitalmusic.com</link>
	<description>Making music with technology</description>
	<lastBuildDate>Fri, 25 May 2012 21:05:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>How to Make a Music App for iOS, Free, with libpd: Exclusive Book Excerpt</title>
		<link>http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/</link>
		<comments>http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 19:21:00 +0000</pubDate>
		<dc:creator>Peter Kirn</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[game-audio]]></category>
		<category><![CDATA[game-design]]></category>
		<category><![CDATA[game-sound]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[interactive-music]]></category>
		<category><![CDATA[interactive-sound]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod-touch]]></category>
		<category><![CDATA[libpd]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[o'reilly]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[Pd]]></category>
		<category><![CDATA[peter-brinkmann]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[pure-data]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Sound-design]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://createdigitalmusic.noisepages.com/?p=22994</guid>
		<description><![CDATA[What will you do with this blank slate? Photo (CC-BY) Yutaka Tsutano. Apple yesterday described their iPad as &#8220;this magical pane of glass that can become anything you want it to be.&#8221; So &#8211; how about making mobile devices into what you want it to be? With the help of author Peter Brinkmann and publisher &#8230; <a class="btn read-more" href="http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/">Continue &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://createdigitalmusic.com/files/2012/03/iphones.jpg"><img src="http://createdigitalmusic.com/files/2012/03/iphones.jpg" alt="" title="iphones" width="640" height="427" class="alignnone size-full wp-image-22996" /></a></p>
<div class="imgcaption">What will you do with this blank slate? Photo (<a href="http://creativecommons.org/licenses/by/2.0/">CC-BY</a>) <a href="http://www.flickr.com/photos/ivyfield/">Yutaka Tsutano</a>.</div>
<p>Apple yesterday described their iPad as &#8220;this magical pane of glass that can become anything you want it to be.&#8221; So &#8211; how about making mobile devices into what you want it to be?</p>
<p>With the help of author Peter Brinkmann and publisher O&#8217;Reilly, we&#8217;d like to give you a taste of Peter&#8217;s new book, <em>Making Musical Apps: Real-time audio synthesis on Android and iOS</em>. Imagining that a lot of you are especially curious about iOS, we&#8217;ll include the chapter on how to get started with development. It really gives you a sense of how easy this can be; the challenge is, as it should be, coming up with musical ideas. And Apple did say that they thought that technology was at its best when it was &#8220;invisible,&#8221; not when it was &#8220;inaudible.&#8221; So let&#8217;s make it make some noise.</p>
<p><em>(Android developers, libpd actually got its start on Android and runs quite well even on very primitive Android handsets, so consider this a sample; the full book &#8211; and the <a href="http://libpd.cc">libpd site</a> &#8211; include loads of examples on the Android side, too. In fact, because libpd works basically identically on the two platforms, it&#8217;s a great choice for making cross-platform development easier.)</em></p>
<p>In this excerpt, Peter covers:</p>
<ul>
<li>How to set up your development environment</li>
<li>Starting a project with Xcode, and including Pd</li>
<li>How to make a Pd patch run in your app</li>
<li>Making the Pd patch and your UI connect with each other (here, from the app&#8217;s UI to Pd; the book covers both directions)</li>
</ul>
<p>In fact, in just a few pages, you&#8217;ll have a working guitar tuner for iOS. Have a look:<span id="more-22994"></span></p>
<p>Read it on CDM&#8217;s Scribd page:</p>
<p><a title="View Making Musical Apps (Excerpt: How to Build a Music App for iOS) on Scribd" href="http://www.scribd.com/doc/84526020/Making-Musical-Apps-Excerpt-How-to-Build-a-Music-App-for-iOS" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">Making Musical Apps (Excerpt: How to Build a Music App for iOS)</a><iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/84526020/content?start_page=1&#038;view_mode=list&#038;access_key=key-1980jjdp4pnq79z6lisu" data-auto-height="true" data-aspect-ratio="0.772727272727273" scrolling="no" id="doc_89236" width="100%" height="600" frameborder="0"></iframe></p>
<p>Direct PDF download link, hosted by CDM (please don&#8217;t link to this file directly):<br />
<a href="http://createdigitalmusic.com/files/2012/03/MakingMusicalAppsExcerpt.pdf">Making Musical Apps (Excerpt)</a> [PDF]</p>
<p>I&#8217;ve read an advance copy of the whole book, and my review is simple: if you&#8217;re curious about this stuff, get this book. Peter&#8217;s style is friendly and precise; no technical detail is left out, and yet those details aren&#8217;t overwhelming. The book can be accessible to those new to development, which is essential for a title that&#8217;s likely to be read by people who are used to Pd, but dipping their toes into Java and Objective-C for the first time in order to get their patches running on a device.</p>
<p>Ready for the full book?</p>
<p>Get a printed copy on Amazon:</p>
<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;nou=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=createdigital-20&#038;o=1&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=1449314902" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>Or read the Kindle edition:</p>
<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;nou=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=createdigital-20&#038;o=1&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B007C5TUGQ" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>For multi-platform epub, mobi, and PDF formats, head straight to the O&#8217;Reilly page:<br />
<a href="http://shop.oreilly.com/product/0636920022503.do">Making Musical Apps</a> [shop.oreilly.com]</p>
<p><a href="http://libpd.cc/read-the-book/">http://libpd.cc/read-the-book/</a></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/&via=cdmblogs&text=How to Make a Music App for iOS, Free, with libpd: Exclusive Book Excerpt&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/&via=cdmblogs&text=How to Make a Music App for iOS, Free, with libpd: Exclusive Book Excerpt&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='wpfblike' style='height: 40px;'><iframe src='http://www.facebook.com/plugins/like.php?href=http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/&amp;layout=default&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light&amp;send=false' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:400px;'></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://createdigitalmusic.com/2012/03/how-to-make-a-music-app-for-ios-free-with-libpd-exclusive-book-excerpt/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>iPhone Day: Free Frameworks Make Thumping Apps, Mobile or Otherwise</title>
		<link>http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/</link>
		<comments>http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 04:48:23 +0000</pubDate>
		<dc:creator>Peter Kirn</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[drum-machines]]></category>
		<category><![CDATA[free-software]]></category>
		<category><![CDATA[grooveboxes]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod-touch]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[open-hardware]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[openframeworks]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[Pd]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[pure-data]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://createdigitalmusic.com/?p=7827</guid>
		<description><![CDATA[Part of the beauty of the iPhone from its launch date was the notion of a Mac you could fit in the palm of your hand. That makes it ironic that, for so many developers, mobile platforms in general have turned into a way to fragment software, to make it run fewer places instead of &#8230; <a class="btn read-more" href="http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/">Continue &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p><object width="580" height="469"><param name="movie" value="http://www.youtube.com/v/-OgEOk4mrYw&#038;rel=0&#038;color1=0x5d1719&#038;color2=0xcd311b&#038;hl=en&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/-OgEOk4mrYw&#038;rel=0&#038;color1=0x5d1719&#038;color2=0xcd311b&#038;hl=en&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="580" height="469"></embed></object></p>
<p>Part of the beauty of the iPhone from its launch date was the notion of a Mac you could fit in the palm of your hand. That makes it ironic that, for so many developers, mobile platforms in general have turned into a way to fragment software, to make it run <em>fewer</em> places instead of more. There&#8217;s something to be said for designing to a specific mobile device, but on the other hand, how many developers would want to restrict where their creations run? And particularly in music, isn&#8217;t the appeal of mobile creation the ability to have your tools work in more places? Maybe targeting just one gadget is the right choice for a given tool, but it shouldn&#8217;t be the <em>only</em> choice.</p>
<p>On the iPhone, the application Thump has plenty in common with a range of mobile music making tools. It&#8217;s simple but fun, a groove box with sequencing, subtractive synths, drums, and a set of basic effects, plus the ability to load your own samples and export songs.</p>
<p>Thump also demonstrates how simplifying sonic capabilities can produce musically-beautiful results, by focusing on the essentials and creating something with personality. Here&#8217;s a track by its creator showing off its sounds:<br />
<object height="81" width="100%"><param name="movie" value="http://a1.soundcloud.com/player.swf?g=wi&#038;url=http%3A//soundcloud.com/mazbox/thump-soundreel"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://a1.soundcloud.com/player.swf?g=wi&#038;url=http%3A//soundcloud.com/mazbox/thump-soundreel" type="application/x-shockwave-flash" width="100%" wmode="transparent"></embed></object><span><a href="http://soundcloud.com/mazbox/thump-soundreel/">thump soundreel</a> by <a href="mazbox">mazbox</a></span></p>
<p>Well worth checking out the app on your platform of choice:<br />
<a href="http://www.mrkbrz.com/thump/">http://www.mrkbrz.com/thump/</a></p>
<p>What might not be immediately apparent is that under the hood, Thump makes use of the open source environment <a href="http://www.openframeworks.cc/">openFrameworks</a>. As a result, the same code runs on iPhone, Mac, and Windows, as well as Linux. (It&#8217;s not distributed for Linux, but it could be. Hint, hint.) Creator  Marek Bereza gives back, too &#8211; he ported the openFrameworks audio library to the iPhone, where it&#8217;s available to anyone.</p>
<p><strong>Updated</strong> Marek notes in comments just what this means. The video below is, essentially, <em>the same app</em>. In place of the iPod screen, he has used a massive lattice of physical controls. A separate installation at the same show used a large touchscreen and simplified interface. And this really demonstrates what cross-platform means. Guy Kawasaki in the 80s mocked &#8220;ports&#8221; as a cheap wine. The idea is not to simply dump your code on a different platform and hope for the best &#8211; in fact, in this case, the changes from one platform to another were radical. The key is maximizing what&#8217;s essential, what really is not specific to a single device.</p>
<p><object width="580" height="435"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6804910&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=CC0000&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6804910&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=CC0000&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="580" height="435"></embed></object>
<p><a href="http://vimeo.com/6804910">Physical Sequencer</a> from <a href="http://vimeo.com/mazbox">Marek Bereza</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><a href="http://www.creativeapplications.net/environment/physical-sequencer-aka-thump-of-sound-iphone/">Creative Applications has a detailed write-up</a> of the installation with more documentation.</p>
<p>If you&#8217;re interested in creating your own projects, oF has an elegant syntax based on Processing, but adapted to C/C++ coding paradigms and libraries.<span id="more-7827"></span></p>
<p>I would recommend trying desktop development first as you&#8217;re learning, but when you do want to go mobile, setup is absurdly easy:</p>
<p><a href="http://www.openframeworks.cc/setup/iphone">Setup instructions for iPhone</a></p>
<p>Having this as a foundation means more freedom for users and developers alike, the ability to run where you want, and a shared community of artists helping one another out. It does not mean sacrificing revenue, either &#8211; which is important, because revenue is often what enables (and encourages) developers to make new things. Here, we see a commercial mobile tool and distribution via the iTunes store, with free-as-in-beer distribution of desktop apps. But even the Free Software Foundation actually <a href="http://www.fsf.org/licensing/essays/selling.html">encourages charging for distribution</a> &#8211; and to many people, the FSF is the most extreme example. </p>
<p>The bottom line is, you&#8217;re free to create what you want, where you want &#8211; and it doesn&#8217;t even have to have a price of free.</p>
<p>The use of openFrameworks is possible because the iPhone allows the execution of native code. Apple does not allow the Java virtual machine, which locks out many useful platforms and tools &#8212; including <a href="http://processing.org">Processing</a>. Naturally, that should not be the case with forthcoming non-Apple platforms based on Linux; more on that soon.</p>
<p><em>Thanks to Memo Akten for the tip &#8212; and for his exceptional documentation of iPhone openFrameworks development.</em></p>
<p><img src="http://createdigitalmusic.com/files/2009/10/motionpage2.jpg" alt="motionpage2" title="motionpage2" width="480" height="320" class="alignright size-full wp-image-7846" /></p>
<p><strong>GPU-tiful and Cross-Platform</strong></p>
<p><strong>Updated</strong> Another framework I left out is the lovely <a href="http://www.libnui.net/">libnui</a>. The tagline says it all: &#8220;C++ API, multiplatform (Mac OS X, iPhone, Win32, Win64, Linux), 3D hardware accelerated GUI and more&#8230;&#8221;</p>
<p>On the iPhone, Intua&#8217;s elaborate Beatmaker software and David Wallin&#8217;s bleep!box have both been made with libnui. I want to single out <a href="http://www.bleepboxapp.com/">bleep!box</a> because of its UI &#8211; note how UI elements are simplified and scaled to the size of your fingertip. That&#8217;s something that, speaking of multiple platforms, could be equally important with touch hardware coming to Mac, Windows, and Linux platforms (some of it here already). I saw a huge fan of Windows tablets loving Propellerhead Reason on a tablet. He probably would be less enthused running Reason or Record on a touch interface; the UI elements are way too small.</p>
<p>bleep!box is also worth a look for the same reason as Thump: elegant UI, simple functions, and a lot of fun.</p>
<p><strong>Pd, too</strong></p>
<p>Pure Data, the open source patching cousin of Max/MSP, can also run on mobile devices. It&#8217;s currently powering the application <a href="http://rjdj.me">RjDj</a>, but because Pd is free, that could be just the beginning. In May, I wrote about the work being done by Hans-Christoph Steiner, who has been <a href="http://createdigitalmusic.com/2009/05/12/save-that-old-pda-run-reware-play-pd-musical-creations-android-offf-nyc/">porting Pd even to ancient PDAs and iPods</a> &#8211; including those, notably, without native floating-point capabilities (the kind of number crunching usually associated with sound).</p>
<p>Well, now Hans-Christoph is looking toward other, current-generation devices, too, kicking off with a workshop on making interactive sound on the iPhone using Pure Data. Here&#8217;s a taste:</p>
<blockquote><p>OK, kids, you won&#8217;t believe how easy this is. Once you have Pure Data installed on your your iPhone or iPod-Touch, creating and uploading your own sound-processing and sound-generating patches is as trivial as copying a text file to your device! You&#8217;ll still need an Apple Developer License, but because Pd patches are treated as media files, they don&#8217;t have to go thru Apple&#8217;s elaborate code review &#8212; so, you can just dive right in, turning your phone into a pocket synth within minutes. In this 3-hour hands-on workshop, interactive sound whiz and Pure Data developer Hans-Christoph Steiner will lead you through all the steps.</p></blockquote>
<p>Hans-Christoph will be talking Pd on the iPhone at a conference next month at Carnegie Mellon University in Pittsburgh. That will also include Memo Akten and Zach Gage talking about <a href="http://artandcode.ning.com/page/iphone-openframeworks">openFrameworks</a>. And for nearly-entirely open source hardware, there&#8217;s a tantalizing-looking workshop combining <a href="http://artandcode.ning.com/page/mobile-physical-computing">Android with Arduino</a>, too. </p>
<p><a href="http://artandcode.ning.com/">http://artandcode.ning.com/</a></p>
<p>There&#8217;s quite a lot more to say about this, but I hope this whets your appetite.</p>
<p>And, of course, riding the train to Pittsburgh or your nearest university or open source workshop, now you&#8217;ll have Thump which which to make some thumping tracks on your iPhone.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/&via=cdmblogs&text=iPhone Day: Free Frameworks Make Thumping Apps, Mobile or Otherwise&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/&via=cdmblogs&text=iPhone Day: Free Frameworks Make Thumping Apps, Mobile or Otherwise&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='wpfblike' style='height: 40px;'><iframe src='http://www.facebook.com/plugins/like.php?href=http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/&amp;layout=default&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light&amp;send=false' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:400px;'></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://createdigitalmusic.com/2009/10/iphone-day-free-frameworks-make-thumping-apps-mobile-or-otherwise/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

