supersonic-scsynth-core
v0.81.0
Published
SuperCollider scsynth on clockwork: the WebAssembly engine and AudioWorklet for SuperSonic
Maintainers
Readme
supersonic-scsynth-core
The SuperSonic engine for the browser: SuperCollider's scsynth synthesis engine compiled to WebAssembly, running on the clockwork substrate inside an AudioWorklet. It takes OSC in, renders audio out, and answers the scsynth command set. The client that talks to it is supersonic-scsynth, which loads this package from a CDN or from a path you give it.
Contents
wasm/scsynth-nrt.wasm- the engineworkers/clockwork_audio_worklet.js- the AudioWorklet processor that runs it on the audio thread
Usage
This package is typically loaded automatically by supersonic-scsynth from CDN:
import { SuperSonic } from 'supersonic-scsynth';
const supersonic = new SuperSonic();
// Loads core from: https://unpkg.com/supersonic-scsynth-core@latest/Self-Hosting
To host the core yourself:
import { SuperSonic } from 'supersonic-scsynth';
const supersonic = new SuperSonic({
coreBaseURL: '/path/to/supersonic-scsynth-core/'
});Installation
npm install supersonic-scsynth-coreThen serve the wasm/ directory and workers/clockwork_audio_worklet.js from your static file server.
License
AGPL-3.0-or-later. The engine is scsynth (GPL-3.0-or-later, derived from SuperCollider by James McCartney and the SuperCollider community) running on clockwork (AGPL-3.0-or-later), and the combined work is AGPL.
Related Packages
supersonic-scsynth- the client API (AGPL-3.0-or-later)supersonic-scsynth-synthdefs- synth definitions (MIT)supersonic-scsynth-samples- audio samples (CC0)supersonic-scsynth-bundle- everything together
