Skip to content

Commit d56b181

Browse files
committed
Expand README with Linux deps and fuller example
1 parent 876e68f commit d56b181

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ A lightweight Python module to control the [SuperCollider](https://supercollider
77
The `liblo` library is required for the underlying OSC communications.
88

99
```
10-
brew install liblo # macOS
11-
apt-get install liblo7 # Linux
10+
brew install liblo # macOS
11+
apt-get install liblo7 liblo-dev # Linux
1212
```
1313

1414
Install the Python package:
@@ -19,6 +19,18 @@ pip3 install supercollider
1919

2020
## Usage
2121

22+
Before using the library, start the SuperCollider server, either through the SuperCollider GUI or with `scsynth -u 57110`.
23+
24+
Within the SC client, create the below SynthDef:
25+
26+
```
27+
SynthDef(\sine, { |out = 0, freq = 440.0, gain = 0.0|
28+
Out.ar(out, SinOsc.ar(freq) * gain.dbamp);
29+
}).store;
30+
```
31+
32+
From Python, you can now create and trigger Synths:
33+
2234
```python
2335
from supercollider import Server, Synth
2436

0 commit comments

Comments
 (0)