SuperCollider3 (sc3) for Python and Jupyter notebooks
Project description
sc3nb
sc3nb is a python package that offers an interface to SuperCollider3 (SC3), with special support to be used within jupyter notebooks.
The goal of sc3nb is to facilitate the development of auditory displays and interactive sonifications by teaming up
- python (and particularly numpy, scipy, pandas, matplotlib etc.) for data science
- and SuperCollider3 for interactive real-time sound rendering.
It allows:
- to interface with the SuperCollider audio server (scsynth) aswell as the SuperCollider Language and Interpreter (sclang) via the SC class
- The SuperCollider audio server can be started and addressed via
- OSC directly with OSC messages and bundles
- Python implementations of Classes from SuperCollider like
Synth
,SynthDef
,Buffer
andBus
- the
Score
class for non-realtime synthesis
- use the SuperCollider language (sclang) interactively via a subprocess.
- write SuperCollider language code in Jupyter Notebooks and let sclang evaluate it.
- inject Python variables into your sclang code
- get the results of the sclang code in Python
- helper functions such as linlin, cpsmidi, midicps, clip, ampdb, dbamp which work like their SC3 counterparts.
sc3nb can be used for
- multi-channel audio processing
- auditory display and sonification
- sound synthesis experiment
- audio applications in general such as games or GUI-enhancements
- signal analysis and plotting
- computer music and just-in-time music control
- any usecase that the SuperCollider 3 language supports
It is meant to grow into a backend for a sonification package, and can be used both from jupyter and in standard python software development.
Installation
- To use sc3nb you need a installation of SuperCollider on your system. See SuperCollider Download for installation files.
- To install sc3nb you can
- install it locally in editable mode (i.e. changes to sc3nb code will automatically be "re-installed").
- clone the repository from https://github.com/interactive-sonification/sc3nb
- from inside the sc3nb directory run
pip install -e .
- or install it directly from GitHub using
pip install git+git://github.com/interactive-sonification/sc3nb@master
- we are also currently making sure that sc3nb can also be installed via
pip install sc3nb
from PyPI
- install it locally in editable mode (i.e. changes to sc3nb code will automatically be "re-installed").
Examples
We provide examples in the form of Jupyter notebooks. You see them executed in the User Guide section of the documentation and also download them from the sc3nb examples folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sc3nb-1.0.1.tar.gz
.
File metadata
- Download URL: sc3nb-1.0.1.tar.gz
- Upload date:
- Size: 134.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8236413a1ef1c68f9437aa956d0efa91c817547fa71a53429fa554f166c27ac5 |
|
MD5 | 2424720c206c01aaa082627ac66ec775 |
|
BLAKE2b-256 | f64e7a7844732225985ed13fe4d42e3826926c5a9ca8f7005fe105f443e86db5 |
File details
Details for the file sc3nb-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: sc3nb-1.0.1-py3-none-any.whl
- Upload date:
- Size: 71.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ee24e51659b5fe8bb3ac9f967225c68f5f6b537948b19d9cf722b2f10ce40c |
|
MD5 | ae677d0c49a5b9dc91eb5d582257ab3d |
|
BLAKE2b-256 | 32151e8b6713381fc564a52909a930c443419aa35a4d716e353ddca335a8ec81 |