Skip to content

Commit

Permalink
Expand README with Linux deps and fuller example
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Oct 15, 2019
1 parent 876e68f commit d56b181
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A lightweight Python module to control the [SuperCollider](https://supercollider
The `liblo` library is required for the underlying OSC communications.

```
brew install liblo # macOS
apt-get install liblo7 # Linux
brew install liblo # macOS
apt-get install liblo7 liblo-dev # Linux
```

Install the Python package:
Expand All @@ -19,6 +19,18 @@ pip3 install supercollider

## Usage

Before using the library, start the SuperCollider server, either through the SuperCollider GUI or with `scsynth -u 57110`.

Within the SC client, create the below SynthDef:

```
SynthDef(\sine, { |out = 0, freq = 440.0, gain = 0.0|
Out.ar(out, SinOsc.ar(freq) * gain.dbamp);
}).store;
```

From Python, you can now create and trigger Synths:

```python
from supercollider import Server, Synth

Expand Down

0 comments on commit d56b181

Please sign in to comment.