Skip to content

File Runs

resonon run runs the project’s src/main.non once, top to bottom, and exits. It runs from any directory inside the project. The options are in Command Line.

Terminal window
resonon run
resonon run --no-midi
In a file run
Preferences~/.resonon/preferences.toml, read once, when the run starts
Audio deviceThe one [audio] names, as live. With no device, a line says so and the run goes on; render() needs none.
MIDI portsThe declared [[midi.outputs]] and [[midi.inputs]]. None with --no-midi.
Plugin sweepIn the background, unless auto-scan is off
ServerNone
Visuals windowNone, unless the piece calls screen.show_window()
StartCycle 0, transport stopped
TransportPLAY, STOP and the other transport statements run as they do live
sleep(s)The piece plays for s seconds before the next statement. on_cycle callbacks fire and print() output appears while it does, as in a live session.
EndAfter the last statement. Playback, recording and MIDI clock stop with it.
RESETEnds the run there. What follows it does not run.

Nothing but what the piece asks for: audio where it calls render(), into the project’s renders/ (Audio Files), and MIDI where it calls midi_export(). print() goes to standard output, errors to standard error.

StatusWhen
0The piece ran to its end, or to a RESET
1A parse error (nothing runs), a runtime error (the run stops there), no resonon.toml at or above the working directory, no src/main.non, or a project that needs a newer resonon
2A usage error: an unknown option or command, a file named on the command line, or an environment variable that cannot be read