Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Creating a Musical App: Part I > Configuring libpd

Configuring libpd

Let’s add a Pd patch to our app. As in Chapter 5, we use a straightforward modification of our synthesizer patch from Chapter 2 (Figure 6-9). Click on the menu item “File ? Add File to "GuitarTuner"…” and select the folder containing your patch. Xcode offers a number of ways of importing folders; make sure to select “Create groups for any added folders” before clicking on Add (Figure 6-10).

Now we set up the components of libpd as discussed in Launch Sequence. First, we need to configure the audio components of libpd, using an instance of the PdAudioController class discussed in Chapter 4. The audio controller is a global object, potentially relevant to all parts of the app, and so we have the application delegate manage it and make it available through an accessor method.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint