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
  • PrintPrint
Share this Page URL
Help

4. Embedding Pure Data with libpd > Finding Resources

Finding Resources

Setting the search path in Java

static void clearSearchPath();
static void addToSearchPath(String path);

Setting the search path in Objective-C

+(void)clearSearchPath;
+(void)addToSearchPath:(NSString *)path;

If your patch uses additional resources, such as wav files or abstractions, then it is good practice to package those resources with your patch and to refer to them by relative paths only. In some situations, however, you may have to keep some resources separate from your patch. In this case, you need to add their locations to the search path of Pd so that Pd will be able to find them.

Note

You may be aware that Pd has two search paths, the regular one and the extra path. The extra path exists to solve a problem that won’t occur when working with libpd, and so libpd just leaves it blank.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


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