1 title:: SuperColliderAU
2 categories:: Platform>OSX
3 summary:: wraps scsynth as an AudioUnits plugin
5 SuperColliderAU is an AudioUnit wrapper that allows using SuperCollider servers inside AudioUnits hosts on MacOSX. The embedded server may be controlled over OSC as usual. In addition, it may be packed with a synth definition and a configuration file that defines its parameters.
9 Copy the bundle "SuperColliderAU.component" into /Library/Audio/Plug-ins/Components or in ~/Library/Audio/Plug-ins/Components
13 Start up an Audio Units host application. Common hosts include Apple Logic and Ableton Live. A list of supported hosts can be found in this page of the SuperCollider swiki (feel free to update it):
15 http://swiki.hfbk-hamburg.de:8888/MusicTechnology/823
17 Find SuperColliderAU among the rest of AudioUnit plugins and add an instance to a track (check the manual of your host if you don't know how to do this). A panel will appear telling you which port the server is listening to for OSC messages.
19 Now you can run this code from within the SuperCollider language to talk directly with the embedded server:
21 u = Server(\scau, NetAddr("127.0.0.1", 9989)); // Change the port from 9989 to the right one for you
22 u.serverRunning = true;
23 u.ping(10); // Gives about 0.02 for me - confirms that communication is working
24 // Now let's create a quick ring-modulator effect:
25 z = { AudioIn.ar([1,2]) * SinOsc.ar(MouseX.kr(100, 1000)) }.play(u);
28 section::Inside the bundle
30 As an AudioUnit plugin, SuperColliderAU is packaged in a component bundle. All the files needed by SuperColliderAU can be found in the Resources folder inside the bundle:
32 subsection::serverConfig.plist
33 Stores configuration parameters for the server (see link::Classes/ServerOptions::)
36 ## PortNumber: the udp port that scserver will listen to if available (otherwise, it will look for an available port).
37 ## BlockSize: block size configuration for the server.
38 ## MemorySize: amount of real time memory allocated to this server.
39 ## NumWireBufs: maximum number of buffers for connecting ugens.
40 ## DoNoteOn: (experimental) if true the server will send an OSC bundle setting the "note" and "velocity" parameters when a MIDI noteon or noteoff message is received. For this to work you need a host that supports Midi effect AudioUnits and sends them MIDI mesages.
41 ## BeatDiv: For linking Demand Ugens to the Host tempo. If this number is set, SuperColliderAU wil trigger bus 0 each beat division and use bus 1 for reset.
44 subsection::pluginSpec.plist
45 Stores parameter configuration for standalone plugins. SuperColliderAU will use this to display and set the parameters of your synth definition. Note that the defalt values must be the same for the synth definition, they wil not be set by the wrapper. The value in this file is only for display.
48 For standalone plugins you should have your synth definition here. When controlling the server remotely you can just send the synth definitions.
51 Here you need all the SC plugins you intend to use with that server.
53 section::Making standalone plugins
55 Besides controlling SuperColliderAU from within the language, you can create AudioUnits plugins that are controlled from the host using the default GUI. This can be done manually by duplicating SupercolliderAU.component, adding a synthdef and associated SC plugins and editing pluginSpec.plist. However, if you want an AudioUnit with a unique identifier (the identifier is what you see from within the host GUI) you have to recompile its resource file (with the new identifier) using Rez. This program is included in Apple's Developer Tools. A helper class that automates all this process is mantained in the AudioUnitBuilder quark. Using link::Classes/AudioUnitBuilder:: you can create standalone AudioUnit plugins without leaving SuperCollider.