Skip to content

Command Line

The resonon binary runs a project, drops into a REPL, or manages the runtime around it (server, views, versions, plugins). This page covers the runtime CLI. The project and package commands (init, new, install, …) are under Project & Package Commands.

Every resonon command uses the same exit-code contract:

CodeMeaning
0Done: the requested work completed successfully.
1Ran and failed: code or a check found errors, a project failed to open, or a file the command discovered could not be read or drawn. Operational failures, such as compilation, downloads, writes, or a stopped or unsaved plugin sweep, also use this code.
2Could not be attempted: invalid usage or an unreadable environment knob; a refused version pin; a missing project, entry file, or build prerequisite; an explicitly named input that cannot be read; a connection failure; or a named server without this project’s session.

Warnings and notes alone do not fail a check. A skipped, blocklisted plugin bundle alone does not fail a discovery sweep. For a rescan of several named paths, invalid input takes precedence over a failed scan, and every path is attempted.

The launcher uses the same contract. A failure before the selected binary starts exits 2; once the binary runs, the launcher preserves its exit status.

resonon run [OPTIONS]
resonon [OPTIONS]

With no command, start the interactive REPL. run evaluates the project’s entry point.

A piece is run by resonon run, in its project. A file named on the command line is not a way to run one: resonon song.non is a usage error. The project is the nearest directory at or above the working directory that holds a resonon.toml — the same one the resonon launcher read to choose the version that runs. resonon run opens the project as the editor does: it restores the project’s saved session, if there is one, opens the entry file (src/main.non, or entry in resonon.toml), calls its fn setup() if it defines one and runs the rest of its top level. Then it evaluates the script named after run, if there is one, and exits. It writes files only where the code asks it to: audio where it calls render(), MIDI where it calls midi_export(). What it opens, and its exit status, are in File Runs.

The options go before or after run: resonon run --no-midi and resonon --no-midi run are the same.

With no resonon.toml at or above the working directory, resonon run and the REPL are refused before anything is opened:

No resonon.toml in /Users/you/scratch or above it.
A piece belongs to a project — start one with `resonon new <name>`, or `resonon init` in the folder it should live in.

resonon new and resonon init are under Project & Package Commands.

resonon [OPTIONS] [COMMAND]
ArgumentDefaultDescription
--list-portsfalseList available MIDI ports (with paste-ready declarations) and exit
--no-midifalseDisable MIDI entirely. Port declarations still succeed and still get a stable alias, so a piece evaluates identically with and without hardware — nothing is opened and nothing is sent. For CI and headless rendering
--multicore[=<MULTICORE>]—Enable multicore audio rendering. --multicore or --multicore=true turns it on; --multicore=false off; omit for the default (off). RESONON_PARALLEL overrides this flag. An explicit value requires =
--plugin-auto-scan[=<PLUGIN_AUTO_SCAN>]—Sweep the plugin folders in the background at startup. Default: on. --plugin-auto-scan=false disables the sweep; a bare flag enables it. RESONON_PLUGIN_AUTO_SCAN overrides this flag. An explicit value requires =
-h, --help—Print help
-V, --version—Print version
Terminal window
resonon run # run the project's src/main.non
resonon --list-ports # see attached MIDI devices
resonon run --no-midi # run with MIDI disabled (CI, headless)
resonon # start the REPL
resonon server [OPTIONS]

Start the WebSocket server for remote code execution

ArgumentDefaultDescription
--port <PORT>5555WebSocket server port
--host <HOST>127.0.0.1WebSocket server host address
--name <NAME>—Custom server name for discovery (defaults to hostname)
--no-midifalseDisable MIDI entirely. Port declarations still succeed and still get a stable alias, so a piece evaluates identically with and without hardware — nothing is opened and nothing is sent. For CI and headless rendering
--multicore[=<MULTICORE>]—Enable multicore audio rendering. --multicore or --multicore=true turns it on; --multicore=false off; omit for the default (off). RESONON_PARALLEL overrides this flag. An explicit value requires =
--plugin-auto-scan[=<PLUGIN_AUTO_SCAN>]—Sweep the plugin folders in the background at startup. Default: on. --plugin-auto-scan=false disables the sweep; a bare flag enables it. RESONON_PLUGIN_AUTO_SCAN overrides this flag. An explicit value requires =
Terminal window
resonon server --port 6000 --name "studio"
resonon view [OPTIONS] <NAME>

Open a terminal view

ArgumentDefaultDescription
<NAME>—Terminal view name
--port <PORT>—Server port, default 5555 (terminal views show auto-discovery when both host and port are omitted)
--host <HOST>—Server host, default 127.0.0.1
--midi-port <MIDI_PORT>—MIDI input port filter for the midi_monitor view (partial match)

NAME is required: console, routing, scope or midi_monitor. Use resonon app to open the main window.

Terminal window
resonon view routing --host 10.0.0.5 --port 5555

resonon is a launcher. Run inside a project, it runs the Resonon version that project’s resonon.toml pins (package.resonon); outside a project, it runs the default. Versions live under ~/.resonon/versions/.

resonon version is the launcher’s own command, and answers the same whatever the project pins. With no subcommand, it lists installed versions.

resonon version [COMMAND]

Manage installed versions of Resonon

resonon version list

List installed versions, marking the default

resonon version install [OPTIONS] <VERSION>

Download and install a published version

ArgumentDefaultDescription
<VERSION>—Version to install (e.g. 0.11.0), as it appears on the release page
--switchfalseAlso make it the default, the version used where no project pins one
--forcefalseRe-download over an existing install
resonon version switch <VERSION>

Make an installed version the default, used where no project pins one

ArgumentDefaultDescription
<VERSION>—Version to make the default, named as resonon version list shows it
resonon version current

Print the version that runs in this directory, and why

<VERSION> is spelled as resonon version list prints it — bare, with no v prefix (0.11.0, not v0.11.0), though a v is accepted and ignored.

Installing a version is enough for the projects that pin it: from then on they run it. switch only changes the default. A running live server keeps the version it started with until it is restarted.

Terminal window
resonon version list
resonon version current # e.g. "0.12.1 (pinned by /songs/techno/resonon.toml)"
resonon version install 0.12.0 # projects pinning 0.12 now run it
resonon version switch 0.12.0 # make it the default outside projects

current always prints the version first, then why it runs here: (default), (pinned by …/resonon.toml), or (default; …/resonon.toml pins 0.13.0, not installed).

Run it without sudo: with sudo, it works on root’s ~/.resonon, not yours.

resonon plugin <COMMAND>

Manage audio plugins (CLAP + VST3)

resonon plugin scan [OPTIONS]

Scan plugin directories and update the plugin database (CLAP + VST3).

Only bundles that are new or have changed since the last scan are opened.

ArgumentDefaultDescription
--forcefalseRe-open every bundle, including ones blocklisted after crashing or hanging a previous scan
resonon plugin rescan <PATHS>...

Re-open specific plugin bundles, whatever the database already says.

--force scoped to one bundle: the way back for a plugin that was skipped, without paying for a full rescan of everything else.

ArgumentDefaultDescription
<PATHS>...—Bundles to re-open (.clap or .vst3)
resonon plugin list

List discovered plugins from caches (CLAP + VST3)

Terminal window
resonon plugin scan
resonon plugin scan --force
resonon plugin rescan ~/Library/Audio/Plug-Ins/VST3/Whatever.vst3
resonon plugin list

rescan re-opens only the bundles it names, skipped ones included. It exits non-zero if a named bundle still will not load. In the editor the same retry is plugin_rescan(path), usually reached as the plugin-named Retry … quick fix on the error itself.

Any run that starts the audio engine — resonon run, the REPL, a server — also sweeps in the background, unless auto-scan is off. See Find What Is Installed.

resonon setup

Set up this machine: audio, MIDI, folders — one question at a time

The Preferences dialog, in the terminal. Every setting ~/.resonon/preferences.toml holds, offered against the devices and ports this rig actually has, so an interface is chosen from a list rather than typed from memory. Nothing is written until the last page, which names every line that would change, and a file you have commented keeps its comments.

Needs a terminal. Without one it says what to run instead.

Terminal window
resonon setup

Edits ~/.resonon/preferences.toml one page at a time: audio input and output, sample rate, block size, recording offset, MIDI ports and their aliases, kit and plugin folders, and the viz() width.

Behaviour
ChoicesDevices and ports this machine has, offered as a list.
Starting valuesWhat the file already says; ⏎ keeps them.
WritingOnly on the last page, which lists every changed line. esc writes nothing.
FormattingComments, spacing and key order are kept.
Without a terminalPrints the written way to make each setting, and exits.

See Set Up This Machine.

resonon config <COMMAND>

Inspect the active configuration

resonon config paths

Print every directory resonon searches, in order, and why.

“Where is it looking?” should not require reading the source. Each entry says where it came from — the project, this machine’s preferences, or the install — and whether it exists on disk.

resonon config kits <COMMAND>

The folders this machine keeps sampler kits in.

[folders] kits in ~/.resonon/preferences.toml, which you may also edit by hand. Distinct from resonon kits, whose subject is what one project declares: this is the machine, that is the piece.

resonon config kits add <DIR>

Add a folder to the list.

A leading ~ is kept as written and expanded per machine. Relative paths are stored absolute. A quoted path naming $VAR is refused; an unquoted variable is expanded by the shell before Resonon sees it. A folder that is not there right now is still added and reported as absent — an unmounted drive is not a mistake.

ArgumentDefaultDescription
<DIR>—Folder to search
resonon config kits remove <DIR>

Take a folder off the list.

Either as it is written in the file or as it resolves on this machine.

ArgumentDefaultDescription
<DIR>—Folder to stop searching
resonon config kits list

Print the list, as written and as it resolves

resonon config plugins <COMMAND>

The folders this machine keeps CLAP and VST3 plugins in.

[folders] plugins in ~/.resonon/preferences.toml. Added to the standard folders for this OS and to CLAP_PATH / VST3_PATH, never instead of them.

resonon config plugins add <DIR>

Add a folder to the list.

A leading ~ is kept as written and expanded per machine. Relative paths are stored absolute. A quoted path naming $VAR is refused; an unquoted variable is expanded by the shell before Resonon sees it. A folder that is not there right now is still added and reported as absent — an unmounted drive is not a mistake.

ArgumentDefaultDescription
<DIR>—Folder to search
resonon config plugins remove <DIR>

Take a folder off the list.

Either as it is written in the file or as it resolves on this machine.

ArgumentDefaultDescription
<DIR>—Folder to stop searching
resonon config plugins list

Print the list, as written and as it resolves

These scaffold projects and manage dependencies. The tasks are in Install a Package, Publish a Package and Share a Project.

resonon init [OPTIONS] <NAME>

Initialize a new project in the current directory

ArgumentDefaultDescription
<NAME>—Project name
--libfalseCreate a library project (src/lib.non instead of src/main.non)
--kitfalseCreate a sample kit project (kits/ directory)
--nativefalseCreate a native Rust extension project (implies —lib)
resonon new [OPTIONS] <NAME>

Create a new project in a new directory

ArgumentDefaultDescription
<NAME>—Project name (used as directory name)
--libfalseCreate a library project (src/lib.non instead of src/main.non)
--kitfalseCreate a sample kit project (kits/ directory)
--nativefalseCreate a native Rust extension project (implies —lib)
resonon build [OPTIONS]

Build native extension

ArgumentDefaultDescription
--distfalseOutput with platform-specific name for binary distribution
resonon install [SOURCE]

Install a package or all dependencies from resonon.toml

ArgumentDefaultDescription
[SOURCE]—Package source (e.g. gh:user/repo or gh:user/repo@v1.0). Omit to install from resonon.toml
resonon update [NAME]

Update installed packages to latest matching versions

ArgumentDefaultDescription
[NAME]—Package name to update (omit to update all)
resonon remove <NAME>

Remove a dependency from the project

ArgumentDefaultDescription
<NAME>—Package name to remove
resonon collect [KIT]

Copy a kit into the project so it travels with it

A kit resolved out of your own library plays here and is missing on the machine you send this project to. This brings it in — the name in your code does not change, because <project>/kits is searched first.

With no argument, collects every kit resonon.toml declares.

ArgumentDefaultDescription
[KIT]—Kit to collect (omit to collect everything declared in resonon.toml)
resonon kits <COMMAND>

The kits this project depends on from outside it

A project’s own kits, in <project>/kits, need no declaration — they travel because they are already there. This list is the other ones: kits drawn from your library or from elsewhere on this machine, recorded so the project says where its sounds came from. resonon collect adds to it and satisfies it; nothing removes from it but you.

resonon kits list

List what this project declares, and where each kit is right now.

Three answers, because the way out of each is different: a kit in the project travels already, a kit on this machine is one resonon collect away, and a kit that is nowhere has to come from whoever sent you the project.

resonon kits remove <NAME>

Forget a declaration — the project no longer draws on that kit

Only ever a decision, never a deduction: Kit(…) names can be computed, so nothing can work out on your behalf that a kit has stopped being used. The kit’s own files are left where they are.

ArgumentDefaultDescription
<NAME>—Kit name, as it appears in resonon.toml
resonon run [OPTIONS] [SCRIPT]

Open the project headless, then evaluate a script in it

Opens the project as the editor does: restores its saved session, defines the entry file’s functions, calls its setup() and runs the rest of its top level. Then evaluates the script, if one is given, in the opened project, and exits. See exit codes in the CLI reference: https://resonon.org/docs/reference/setup/01-cli/#exit-codes

ArgumentDefaultDescription
[SCRIPT]—A script to evaluate after the project opens, such as scripts/bounce.non
--message-format <MESSAGE_FORMAT>humanHow errors, warnings and output are printed. json: one JSON object per line on stdout, in the form the server sends its clients — output, warning, error, notice, rendered, visual_diagnostic, and a final complete with the outcome. After valid argument parsing, startup and launcher refusals write an error and exactly one failed complete with the same request ID. Argument usage errors retain stderr output. The exit code does not change
--no-midifalseDisable MIDI entirely. Port declarations still succeed and still get a stable alias, so a piece evaluates identically with and without hardware — nothing is opened and nothing is sent. For CI and headless rendering
--multicore[=<MULTICORE>]—Enable multicore audio rendering. --multicore or --multicore=true turns it on; --multicore=false off; omit for the default (off). RESONON_PARALLEL overrides this flag. An explicit value requires =
--plugin-auto-scan[=<PLUGIN_AUTO_SCAN>]—Sweep the plugin folders in the background at startup. Default: on. --plugin-auto-scan=false disables the sweep; a bare flag enables it. RESONON_PLUGIN_AUTO_SCAN overrides this flag. An explicit value requires =
resonon check [OPTIONS] [FILE]

Check the project, or one file, without running it

What the editor shows, from the same analysis: syntax, undefined names and methods, arity, types, and the modules each file imports. Nothing runs, and no audio or MIDI device is opened.

With no source, checks the project’s src/main.non and src/lib.non; - checks code read from stdin. --lines checks just that selection, with the session’s names. Whole files follow the editor’s Live/File mode: Live while the server holds this project’s session, one that runs in the project or has run a file from it. Reports the mode used (the final JSON complete has a mode field, live or file, and in File Mode a reason). Warnings and notes do not fail the check. See exit codes in the CLI reference: https://resonon.org/docs/reference/setup/01-cli/#exit-codes

ArgumentDefaultDescription
[FILE]—Source file, or - to read code from stdin
--code <CODE>—Code to execute or check instead of a file
--lines <LINES>—Inclusive 1-based file lines, for example 4-12
--host <HOST>—Check against this server’s session instead of the editor’s selected one
--port <PORT>—Check against this server’s session instead of the editor’s selected one
--message-format <MESSAGE_FORMAT>humanHow errors, warnings and output are printed. json: one JSON object per line on stdout, in the form the server sends its clients — output, warning, error, notice, rendered, visual_diagnostic, and a final complete with the outcome. After valid argument parsing, startup and launcher refusals write an error and exactly one failed complete with the same request ID. Argument usage errors retain stderr output. The exit code does not change
resonon send [OPTIONS] [FILE]

Execute a file or code in a running live session

The source is a file, --code, or - to read stdin. With no source, Run File Live: the session evaluates the entry file of the project in the working directory, without RESET and without calling setup(). Waits for execution and a short settling period for asynchronous diagnostics. See exit codes in the CLI reference: https://resonon.org/docs/reference/setup/01-cli/#exit-codes

ArgumentDefaultDescription
[FILE]—Source file, or - to read code from stdin
--code <CODE>—Code to execute or check instead of a file
--lines <LINES>—Inclusive 1-based file lines, for example 4-12
--host <HOST>127.0.0.1Server host
--port <PORT>5555Server port
--message-format <MESSAGE_FORMAT>humanHow errors, warnings and output are printed. json: one JSON object per line on stdout, in the form the server sends its clients — output, warning, error, notice, rendered, visual_diagnostic, and a final complete with the outcome. After valid argument parsing, startup and launcher refusals write an error and exactly one failed complete with the same request ID. Argument usage errors retain stderr output. The exit code does not change
resonon save [OPTIONS]

Save the running session in its project without evaluating code

Connects to a live server and waits for the save result. See exit codes in the CLI reference: https://resonon.org/docs/reference/setup/01-cli/#exit-codes

ArgumentDefaultDescription
--collectfalseCopy external samples into the project before saving
--host <HOST>127.0.0.1Server host
--port <PORT>5555Server port
--message-format <MESSAGE_FORMAT>humanHow errors, warnings and output are printed. json: one JSON object per line on stdout, in the form the server sends its clients — output, warning, error, notice, rendered, visual_diagnostic, and a final complete with the outcome. After valid argument parsing, startup and launcher refusals write an error and exactly one failed complete with the same request ID. Argument usage errors retain stderr output. The exit code does not change
resonon open [OPTIONS] [PROJECT]

Open a project in the running server, or reset the open one to its files

Reset Project: calls the session’s teardown(), resets, restores the saved session, defines the entry file’s functions, calls its setup() and runs the rest of its top level. The transport stays stopped and the undo history starts again. Reports plugins that are not installed. Refuses when the session has changes since the last save, unless --discard-changes is given. See exit codes in the CLI reference: https://resonon.org/docs/reference/setup/01-cli/#exit-codes

ArgumentDefaultDescription
[PROJECT].The project folder, or any path inside it
--discard-changesfalseLose the session changes made since the last save
--host <HOST>127.0.0.1Server host
--port <PORT>5555Server port
--message-format <MESSAGE_FORMAT>humanHow errors, warnings and output are printed. json: one JSON object per line on stdout, in the form the server sends its clients — output, warning, error, notice, rendered, visual_diagnostic, and a final complete with the outcome. After valid argument parsing, startup and launcher refusals write an error and exactly one failed complete with the same request ID. Argument usage errors retain stderr output. The exit code does not change
resonon analyze [OPTIONS] <PATH>

Measure rendered audio: levels, loudness, clipping, stereo and bands

The mixer’s meters, run over a WAV file, or over every WAV in a folder such as renders/<name>_<datetime>/ (master first, then the stems). Nothing is played; no device is opened.

Sample peak and RMS are the mixer meter’s own: the largest |x|, and the root of the mean square with the whole file as the window. A full-scale sine reads 0 dBFS peak and -3.01 dBFS RMS. Crest factor is peak minus RMS. The file’s RMS is the mean power of its channels.

True peak (dBTP): ITU-R BS.1770-4 Annex 2, oversampled 4x below 96 kHz, 2x below 192 kHz. The file is taken as silence before and after, so a file that starts or stops abruptly can read above its sample peak at the edge, as a DAC would play it. Loudness (LUFS): BS.1770-4 K-weighting and gating. Integrated loudness is gated at -70 LUFS and -10 LU; momentary (400 ms) and short-term (3 s) maxima are taken at a 100 ms step; loudness range (LU) is EBU Tech 3342.

DC offset is the channel mean, in percent of full scale; the furthest from zero is shown. Clipped samples are at or beyond full scale. Leading and trailing silence is the time before the first and after the last sample above -60 dBFS.

Stereo files: correlation is +1 for mono, 0 for unrelated channels and -1 for opposite polarity. S/M is the side energy against the mid energy in dB: -inf for mono content, 0 for equal energy.

Bands: sub below 60 Hz, low 60-250 Hz, low mid 250 Hz-2 kHz, high mid 2-6 kHz, high above 6 kHz. Measured on a Welch spectrum (Hann window, 50% overlap, about 6 Hz resolution). Each band has its level, in dBFS RMS, and its share of the file’s energy. The shares add up to 100%.

Spectrograms (—spectrogram VIEW, repeatable): one PNG per view, <name>.<view>.png beside each WAV. Time left to right over the whole file; frequency bottom to top, log scale, 20 Hz to 20 kHz; level as colour, fixed from -120 to 0 dBFS, so pictures compare across files and runs. A full-scale sine reads 0 dBFS. The spectrum is a Hann window of about 85 ms. Each column keeps the loudest moment in it, so short transients show in long files. A WAV that render bounced has its tempo beside it in <name>.wav.json, and its cycles are numbered along the top.

See exit codes in the CLI reference: https://resonon.org/docs/reference/setup/01-cli/#exit-codes

ArgumentDefaultDescription
<PATH>—A WAV file, or a folder of them
--spectrogram <VIEW>—Draw a spectrogram of this view of each file: all (the mean energy of every channel), left, right, mid ((L+R)/2) or side ((L-R)/2). A mono file plays on both sides: its side is silent. Repeat for more views
--format <FORMAT>humanHow the measurements are printed. human: a table of levels and a table of bands, one row per file. json: one object on one line, {"silence_threshold_dbfs", "files": [...]}, with each key’s unit in its name (true_peak_dbtp) and per-channel values in per_channel. A level of no signal (-inf dB) and a value that cannot be measured are null. A file that cannot be read is {"path", "error"}. Each file lists its pictures in spectrograms: {"view", "path"}, or {"view", "error"}
resonon reference [COMMAND]

Print the core reference, search the manual, or read one entry

Without a command, print the core reference of this version. Web: https://resonon.org/docs/llms.txt Full reference: https://resonon.org/docs/llms-full.txt

resonon reference search [OPTIONS] <QUERY>

Search manual sections, symbols, modules, DSP builtins, and kits

ArgumentDefaultDescription
<QUERY>—Words to find; quote a query that contains spaces
--kind <K>—Filter by kind
--limit <N>10Maximum number of results
resonon reference read <ID>

Read an entry by ID, or list a page’s sections

ArgumentDefaultDescription
<ID>—Entry ID from search, or a page ID from read
resonon app [OPTIONS] [PROJECT]

Open Resonon as an app: its own session and main window, in the Dock

The session runs on a server of its own, on a free loopback port; no other server is joined or stopped. Closing the window or quitting asks to save first. A project folder or its .resonon document opens the project: its saved session, then its entry file. Resonon.app starts this way when opened from Finder or the Dock.

ArgumentDefaultDescription
[PROJECT]—Project folder or .resonon document to open
--no-midifalseDisable MIDI entirely. Port declarations still succeed and still get a stable alias, so a piece evaluates identically with and without hardware — nothing is opened and nothing is sent. For CI and headless rendering
--multicore[=<MULTICORE>]—Enable multicore audio rendering. --multicore or --multicore=true turns it on; --multicore=false off; omit for the default (off). RESONON_PARALLEL overrides this flag. An explicit value requires =
--plugin-auto-scan[=<PLUGIN_AUTO_SCAN>]—Sweep the plugin folders in the background at startup. Default: on. --plugin-auto-scan=false disables the sweep; a bare flag enables it. RESONON_PLUGIN_AUTO_SCAN overrides this flag. An explicit value requires =
resonon client [OPTIONS]

Bridge a running server to stdin/stdout, for editor integrations

Each line read from stdin is one JSON message sent to the server; each message the server sends is written to stdout as one line of JSON. The messages are the server’s own protocol, unchanged. Ends when stdin closes or the server closes the connection.

ArgumentDefaultDescription
--port <PORT>5555Server port
--host <HOST>127.0.0.1Server host
resonon pkg <COMMAND>

Manage RESONON packages

resonon pkg install [SOURCE]

Install a package (from source or all from resonon.toml)

ArgumentDefaultDescription
[SOURCE]—Package source (e.g. gh:user/repo or gh:user/repo@v1.0). Omit to install from resonon.toml
resonon pkg list

List installed packages

resonon pkg inspect <NAME>

Inspect a package’s exports

ArgumentDefaultDescription
<NAME>—Package name (directory name in lib path)
resonon pkg update [NAME]

Update installed packages to latest matching versions

ArgumentDefaultDescription
[NAME]—Package name to update (omit to update all)

init and new take flags that choose the project type; they combine. A native extension implies a library.

Every scaffold writes resonon.toml, README.md, an MIT LICENSE, an AGENTS.md for coding agents and a .gitignore that excludes dependencies/ and renders/, and initializes a git repository unless it is already inside one. On a machine with no preferences file, and only in a terminal, it then offers to run resonon setup.

resonon pkg list shows a package’s type as [code] (it has src/lib.non), [kits] (it has kits/) or [code+kits].

collect and kits are the tools for a project that depends on your own kit library — see Share a Project.

Each is read once at startup. Where a flag or VSCode setting does the same, it is listed beside it.

VariableAcceptsDescription
RESONON_HEADLESS1, true, yes, on / 0, false, no, off (case-insensitive)Run without opening audio hardware. The graph remains available for offline rendering; transport has no audio callback. Default: off.
RESONON_PARALLEL1, true, yes, on / 0, false, no, off (case-insensitive)Multicore audio rendering. Default: off. Flag: --multicore[=<BOOL>]. VSCode: resonon.audio.multicore.
RESONON_PLUGIN_AUTO_SCAN1, true, yes, on / 0, false, no, off (case-insensitive)The plugin sweep at startup. Off makes scanning strictly manual. Default: on. Flag: --plugin-auto-scan=<BOOL>. VSCode: resonon.plugins.autoScan.
RESONON_SUBPROCESS_SCAN1, true, yes, on / 0, false, no, off (case-insensitive)Plugin scanning in an isolated child process. Off opens bundles in resonon’s own process: a debugging aid that gives up crash isolation, so a plugin that dies on load takes the session with it. Default: on.
RESONON_WORKERSa whole number, 1 or moreAudio worker threads.
RESONON_SPIN_BUDGETa whole number, 0 or moreHow long an idle audio worker spins before it parks.
RESONON_LOGa level for resonon (warn, info, debug, trace), and/or target=level for another crate, comma-separated, e.g. debug,naga=infoThe log filter. Falls back to RUST_LOG, then info. Warnings from resonon and errors from any crate are always shown.
RESONON_RELEASE_BASE_URLanythingRelease download base URL. Defaults to the published release service; used by the launcher when installing a version.
RESONON_HOMEan absolute path to a directory, or to nothing yetThe resonon home, ~/.resonon by default. See Home & Search Paths.
RESONON_STDLIB_PATHan absolute path to a directory that is thereA standard library of your own, in place of the one that ships with this build.

Every variable follows the same rules:

  • The environment variable wins, then the flag, then the default.

  • On/off is 1, true, yes or on against 0, false, no or off, in any case.

  • Unset and empty mean the same thing: not given. RESONON_WORKERS= falls through to the default.

  • A value resonon cannot read stops it starting, naming the variable and what it takes:

    Error: RESONON_PARALLEL=ture is not a boolean.
    Accepted: 1, true, yes, on / 0, false, no, off (case-insensitive).
  • Except a location. An unusable RESONON_HOME or RESONON_STDLIB_PATH is ignored, the default stands, and the startup says so:

    Nothing there yetSomething else there, or a relative path
    RESONON_HOMEApplied: resonon makes it.Ignored; ~/.resonon stands.
    RESONON_STDLIB_PATHIgnored; the shipped standard library stands.Ignored; the shipped standard library stands.

    Both are settled once, when the process starts. resonon config paths prints the directory that was actually taken.

When you run resonon run or the REPL, it:

  1. Validates environment variables and initializes logging.
  2. Reads ~/.resonon/preferences.toml and installs folder, display and MIDI declarations.
  3. Parses CLI arguments and checks the project’s version pin. Management commands handle their work and exit early.
  4. Installs bundled kits when needed and removes retired built-in plugin bundles; handles --list-ports and checks that a project is present.
  5. Resolves operational flags and [audio] against this machine’s hardware.
  6. Starts the plugin sweep in the background, unless auto-scan is off.
  7. Opens audio and the declared MIDI ports before evaluating the first line of user code.
  8. Runs src/main.non or starts the REPL.