An experimental JavaScript API to start and interact with the Sonic Pi server. Compatible with Sonic Pi v4.x.
Documentation is available online at https://sunderb.me/sonic-pi-js-api/latest/
Feature | Implemented? |
---|---|
Booting | |
Boot and initialise the server | β Yes |
Shutdown the server | β Yes |
Basic commands | |
Run code | β Yes |
Stop all jobs | β Yes |
Buffers/workspaces | |
Load workspaces | π§ Partial |
Save workspaces | β Yes (untested) |
Save and play buffer | β Yes (untested) |
Buffer new line and indent | β Yes (untested) |
Recordings | |
Start recording | β No |
Stop recording | β No |
Logging | |
Handle and emit log messages | β Yes |
Handle and emit errors | π§ Partial |
Options & IO | |
Main volume | β Yes |
Safe mode | β No |
External synths | β Yes |
MIDI options | π§ Partial |
Link | β No |
- Heavily based on on the official C++ Sonic Pi API (although not a fully exact copy) - MIT License
This package is licensed under the MIT License. See LICENSE.md for the full license.