Skip to main content

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 PyPI using pip install sc3nb

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.

Publications & Citation

If you use sc3nb please cite the sc3nb introduction paper https://doi.org/10.1145/3478384.3478401

Release files for sc3nb 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sc3nb 1.1.0
File Size Uploaded Provenance
sc3nb-1.1.0.tar.gz 252.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sc3nb 1.1.0
File Interpreter ABI Platform
sc3nb-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 324.5 kB

Release files / sc3nb-1.1.0.tar.gz

Download URL sc3nb-1.1.0.tar.gz
Size 252.5 kB
Tags Source
SHA-256 checksum
How to use checksums
83ccf05164bf5e6186990573702f4252bd2b762e5eb157dc106c3ff5ff4e931b
BLAKE2b-256 checksum
How to use checksums
c6c630dc00102c456f68dba43882e96277cba91e1b66846738707bf8d1aee69e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / sc3nb-1.1.0-py3-none-any.whl

Download URL sc3nb-1.1.0-py3-none-any.whl
Size 71.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
533cee102451e31776082a395d5e533e8965a6725ad4967827c69be9c401cd5a
BLAKE2b-256 checksum
How to use checksums
950d07cc3b8e26a3ae0c6432dd73a4d752601ac13356828497ed4c64627bc123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for sc3nb 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page