Skip to main content

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 and Bus
    • 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").
    • 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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc3nb-1.0.2.tar.gz (248.1 kB view details)

Uploaded Source

Built Distribution

sc3nb-1.0.2-py3-none-any.whl (71.3 kB view details)

Uploaded Python 3

File details

Details for the file sc3nb-1.0.2.tar.gz.

File metadata

  • Download URL: sc3nb-1.0.2.tar.gz
  • Upload date:
  • Size: 248.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 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

Hashes for sc3nb-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1a50c046b4f0ec15957610debd1903cb013d7636d2bad9b9a3f21d8c8381a849
MD5 3d9225d41abdbaf9f14bf2bf93fe0841
BLAKE2b-256 062fecac037b3486de68a65f74eb996386214156ebab3d46a9df2a1af28fd1c0

See more details on using hashes here.

File details

Details for the file sc3nb-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: sc3nb-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 71.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 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

Hashes for sc3nb-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a8da5010ece7f6fcfd6d48506bd452509a7027426f4cb0d6f46ed80f2f88573
MD5 e9d2d22efc70bbe4c52abd5ba9681929
BLAKE2b-256 a0004ab0f544264e7dbfe321d4c94e68e158cae16702922b352591fb118d411b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page