{"id":27479,"library":"tstosc","title":"tstosc","description":"A transpiler converting TypeScript to SuperCollider's SCLang. Version 0.0.2, experimental/unstable, released 2025-01-15 (first version). Differentiators: enables using TypeScript syntax/type-checking for SuperCollider music/audio programming, writes classes to SuperCollider User Extension folder. Built with Node.js, ESM-only, no peer dependencies.","status":"active","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/OzelotVanilla/TypeScript_to_SuperCollider","tags":["javascript","supercollider","transpiler","typescript","ts","sclang"],"install":[{"cmd":"npm install tstosc","lang":"bash","label":"npm"},{"cmd":"yarn add tstosc","lang":"bash","label":"yarn"},{"cmd":"pnpm add tstosc","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only, named export may change. Check README for CLI usage.","wrong":"const tstosc = require('tstosc')","symbol":"tstosc","correct":"import tstosc from 'tstosc'"}],"quickstart":{"code":"// Install globally\nnpm install -g tstosc\n\n// Transpile a TypeScript file (e.g., test.ts)\ntstosc ./test.ts\n// Converts ./test.ts to ./test.sc\n\n// Example test.ts content:\n// const freq = 440;\n// const duration = 0.5;\n// Synth('sine', { freq, gate: 1, out: 0 });\n\n// After running tstosc, check test.sc:\n// cat test.sc\n","lang":"typescript","description":"Shows global install and basic CLI transpilation from TypeScript to SuperCollider SCLang."},"warnings":[{"fix":"Always review generated .sc files before use in SuperCollider.","message":"Package is highly experimental (v0.0.2). May produce unreliable or incorrect SCLang code.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Back up your SuperCollider extensions or run in a test environment.","message":"Class definitions are written to SuperCollider's User Extension folder, potentially overwriting existing files.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'-01':15 '-15':16 '0.0.2':11 '2025':14 'built':35 'class':29 'convert':4 'depend':43 'differenti':19 'enabl':20 'esm':39 'esm-on':38 'experimental/unstable':12 'extens':33 'first':17 'folder':34 'javascript':44 'music/audio':26 'node.js':37 'peer':42 'program':27 'releas':13 'sclang':9,49 'supercollid':7,25,31,45 'syntax/type-checking':23 'transpil':3,46 'ts':48 'tstosc':1 'typescript':5,22,47 'use':21 'user':32 'version':10,18 'write':28","created_at":"2026-05-01T17:46:28.856531+00:00","updated_at":"2026-05-01T17:46:28.856531+00:00","problems":[{"fix":"Ensure global installation: npm install -g tstosc","cause":"Package not installed or not in PATH when using CLI.","error":"Error: Cannot find module 'tstosc'"},{"fix":"Use the .sc file in SuperCollider, not Node.","cause":"Running transpiled output with Node.js instead of SuperCollider.","error":"SyntaxError: Unexpected token 'export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"tstosc","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/OzelotVanilla/TypeScript_to_SuperCollider","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tstosc","openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}