sc_stop_all
Stop all currently playing audio synths immediately to halt sound playback and manage server resources in the SuperCollider audio synthesis environment.
Instructions
Stop all currently playing synths immediately
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:473-486 (handler)The handler function for the 'sc_stop_all' tool. It checks if the SuperCollider server is booted and, if so, executes the SuperCollider code 'Server.default.freeAll;' to stop all currently playing synths.case 'sc_stop_all': { if (!scServer.getBooted()) { return { content: [{ type: 'text', text: 'Error: SuperCollider server is not running.' }], isError: true, }; } await scServer.executeCode('Server.default.freeAll;'); return { content: [{ type: 'text', text: 'All synths stopped' }], }; }
- src/index.ts:189-196 (schema)The tool schema definition for 'sc_stop_all', including its name, description, and input schema (no parameters required). This is part of the tools array registered with the MCP server for listing available tools.{ name: 'sc_stop_all', description: 'Stop all currently playing synths immediately', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:200-202 (registration)Registration of all tools (including 'sc_stop_all') by setting the ListToolsRequestSchema handler to return the tools array.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, }));