← 返回命令列表

Linux command

supercollider 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start the SuperCollider interpreter

sclang

Run a SuperCollider script

sclang [script.scd]

Start in daemon mode

sclang -D

Run Main.run on startup

sclang -r [script.scd]

Set initial heap size

sclang -m [8m]

Set UDP listening port

sclang -u [57120]

Set runtime directory

sclang -d [/path/to/runtime]

说明

sclang is the SuperCollider programming language interpreter. SuperCollider is a platform for audio synthesis and algorithmic composition, used by musicians, artists, and researchers for real-time audio processing and sound design. The interpreter acts as a client for scsynth, the SuperCollider audio synthesis server. It interprets SuperCollider code and sends OSC (Open Sound Control) messages to the synthesis server to control audio generation. SuperCollider scripts (.scd files) can be executed directly from the command line for headless audio processing or batch operations. The daemon mode allows running SuperCollider without a terminal for server deployments. On Linux, sclang can run without a display server by setting the environment variable QT_QPA_PLATFORM=offscreen.

参数

-d _path_
Set runtime directory.
-D
Enter daemon mode (no user input).
-g _size_
Set heap growth size (default 256k). Suffix with k or m.
-h
Display help information.
-l _path_
Set library configuration file.
-m _size_
Set initial heap size (default 2m). Suffix with k or m.
-r
Call Main.run on startup.
-s
Call Main.stop on shutdown.
-u _port_
Set UDP listening port (default 57120).

FAQ

What is the supercollider command used for?

sclang is the SuperCollider programming language interpreter. SuperCollider is a platform for audio synthesis and algorithmic composition, used by musicians, artists, and researchers for real-time audio processing and sound design. The interpreter acts as a client for scsynth, the SuperCollider audio synthesis server. It interprets SuperCollider code and sends OSC (Open Sound Control) messages to the synthesis server to control audio generation. SuperCollider scripts (.scd files) can be executed directly from the command line for headless audio processing or batch operations. The daemon mode allows running SuperCollider without a terminal for server deployments. On Linux, sclang can run without a display server by setting the environment variable QT_QPA_PLATFORM=offscreen.

How do I run a basic supercollider example?

Run `sclang` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d _path_ do in supercollider?

Set runtime directory.