Namespaces

Variants
Actions

Gen Code Export AU

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
This document describes the creation of AudioUnits with gen~.
 
This document describes the creation of AudioUnits with gen~.
  
The referenced material is found here: [[File:AUGenExport-v01.zip‎]]
+
The referenced material is found here: [[Media:AUGenExport-v02.zip‎]]
  
 
== Requirements ==
 
== Requirements ==
Line 14: Line 14:
  
 
== Building an AudioUnit ==
 
== Building an AudioUnit ==
# Duplicate the provided MyAU project with the command: ''python MyAU <My Plugin Name> <My Company Name>'' (For example: python MyAU YourAU MyCompany)
+
# Duplicate the provided MyAU project with the command: ''python duplicate.py MyAU <My Plugin Name> <My Company Name>'' (For example: python duplicate.py MyAU YourAU MyCompany)
 
# Open a gen~ patch to be turned into a plugin.
 
# Open a gen~ patch to be turned into a plugin.
 
# Send gen~ the '''exportcode''' message in order to export the genpatcher as C++ code.
 
# Send gen~ the '''exportcode''' message in order to export the genpatcher as C++ code.
 
# Open the Xcode project generated in step 2.
 
# Open the Xcode project generated in step 2.
# Change the COMP_MANUF and COMP_SUBTYPE settings in the <My Plugin Name>.r resource file and the <My Plugin Name>-Info.plist file.
+
# Change the COMP_MANUF [must be 4 letters] and COMP_SUBTYPE settings in the <My Plugin Name>.r resource file and the <My Plugin Name>-Info.plist file.
 
# If you installed CoreAudio in a location other than /Applications/Developer, change the CORE_AUDIO_LOCATION build setting to the appropriate location and change the location of all of the files in the CoreAudio folder so that Xcode can compile them.
 
# If you installed CoreAudio in a location other than /Applications/Developer, change the CORE_AUDIO_LOCATION build setting to the appropriate location and change the location of all of the files in the CoreAudio folder so that Xcode can compile them.
 
## Click on the project in the Project Navigator to show the build settings
 
## Click on the project in the Project Navigator to show the build settings

Latest revision as of 00:42, 11 July 2013

This document describes the creation of AudioUnits with gen~.

The referenced material is found here: Media:AUGenExport-v02.zip‎

[edit] Requirements

  • Xcode 4.6 or later
  • Max 6.1 or later


[edit] Preliminaries

  • Download the “Audio Tools for Xcode” package by going to Xcode > Open Developer Tool > More Developer Tools ...
  • Install the CoreAudio folder found in the “Audio Tools for Xcode” package. Make sure to grab the one from Feb. 16, 2012. The Xcode packages assume it’s in the folder /Applications/Developer. If you install it somewhere else, change the CORE_AUDIO_LOCATION setting in the Xcode projects


[edit] Building an AudioUnit

  1. Duplicate the provided MyAU project with the command: python duplicate.py MyAU <My Plugin Name> <My Company Name> (For example: python duplicate.py MyAU YourAU MyCompany)
  2. Open a gen~ patch to be turned into a plugin.
  3. Send gen~ the exportcode message in order to export the genpatcher as C++ code.
  4. Open the Xcode project generated in step 2.
  5. Change the COMP_MANUF [must be 4 letters] and COMP_SUBTYPE settings in the <My Plugin Name>.r resource file and the <My Plugin Name>-Info.plist file.
  6. If you installed CoreAudio in a location other than /Applications/Developer, change the CORE_AUDIO_LOCATION build setting to the appropriate location and change the location of all of the files in the CoreAudio folder so that Xcode can compile them.
    1. Click on the project in the Project Navigator to show the build settings
    2. Click on the <My Plugin Name> target under the Targets section
    3. If not already showing, click on the Build Settings tab
    4. Under the User-Defined section, see the CORE_AUDIO_LOCATION setting to be changed (you can use the search field in the Build Settings to quickly locate it)
  7. Build the project.
  8. Copy the build product to the /Library/Audio/Plug-Ins/Components folder.
  9. Run auval -a to verify that the plugin functions properly.