Skip to content

Commit b495280

Browse files
author
Nathan Ho
committed
add readme
1 parent ea74b66 commit b495280

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
This is a minimal example of a SuperCollider server plugin. It compiles a "BoringMixer" ugen that takes the average of its two audio-rate inputs.
2+
3+
## Compiling
4+
5+
Make a directory for the `cmake` build files:
6+
7+
```shell
8+
plugin-example/$ mkdir build && cd build
9+
plugin-example/build/$ cmake -DSC_PATH=/path/to/sc3source/ ..
10+
```
11+
12+
If no `SC_PATH` is provided the build system assumes the SuperCollider include files in `/usr/include/SuperCollider/`.
13+
14+
```shell
15+
plugin-example/build/$ make
16+
plugin-example/build/$ make install
17+
```
18+
19+
On OSX, the plugins will end up in `sc3-plugins/build/SC3plugins`.
20+
21+
WARNING: on OSX, if you want to install into `CMAKE_INSTALL_PREFIX`, you have to specify it by disabling the `IN_PLACE_BUILD` cmake option which defaults to ON (see below).
22+
23+
## Installing
24+
25+
Copy the `SC3plugins` folder to your Extensions folder. You can find out which one that is by evaluating
26+
27+
```
28+
Platform.userExtensionDir
29+
```
30+
31+
from within SuperCollider. Alternatively, you may install the extensions system-wide by copying to
32+
33+
```
34+
Platform.systemExtensionDir
35+
```
36+
37+
Tip: On OSX and Linux, it might be more convenient to use a symbolic link rather than copying or moving the directory.

0 commit comments

Comments
 (0)