synthdef-json-formatter
formatter for SuperCollider Synth Definition File Format
Installation
npm install synthdef-json-formatter
API
format(json: object): string
Example
const formatter = ; const synthdef = "name":"sine" "consts":0 "paramValues":05440 "paramIndices":"name":"amp""index":0"length":1"name":"freq""index":1"length":1 "units":"Control"1011"SinOsc"2001-102"BinaryOpUGen"2210002"Out"20-102020 "variants":"name":"alpha""values":025880"name":"beta""values":051760; console;
"name": "sine" "consts": 0 "paramValues": 05 440 "paramIndices": "name": "amp" "index": 0 "length": 1 "name": "freq" "index": 1 "length": 1 "units": "Control" 1 0 1 1 "SinOsc" 2 0 0 1 -1 0 2 "BinaryOpUGen" 2 2 1 0 0 0 2 "Out" 2 0 -1 0 2 0 2 0 "variants": "name": "alpha" "values": 025 880 "name": "beta" "values": 05 1760
License
MIT