Open Resonon as an app
As an app, Resonon has its own session, its own main window and an icon in the Dock. You do not need a terminal, an editor or a server that is already running.
Start the app
Section titled “Start the app”Open Resonon.app from Finder or the Dock. A new window opens with a new project, Untitled.
Nothing from an earlier session opens, and nothing plays. Press Space to play the new project.
From a terminal, resonon app does the same, and resonon app <project> opens that project
instead. The app’s session runs on a server of its own, on a free port of this computer only. It
does not connect to, or stop, a server that resonon server or the editor started.
Open a project
Section titled “Open a project”A saved project has a document in its folder: <Project name>.resonon. Finder shows it with the
Resonon icon. To open the project, do one of these:
- Double-click the document, or select Open With > Resonon.
- In the app, select File > Open Project… and select the project folder or its document.
The app opens the project as
opening a session does. It restores the saved
session, then runs the entry file: fn setup(), then the rest of the top level. Nothing plays
until you press Play or Space. A project that you did not save yet opens with an empty session,
then runs its entry file. See
The entry file’s lifecycle.
To open the current project again from its files, select File > Reset Project.
If the app is open already, the project opens in the same window. When the current session has changes since it was opened or saved, or an editor file has unsaved changes, the app asks first:
- Save saves the editor files and the session, then opens the project. If the save fails, the current session stays open.
- Discard opens the project without saving.
- Cancel keeps the current session.
The document holds no paths, so you can move, rename or copy the project folder. Keep one
.resonon document in each project: a project with two of them does not open, and the app tells
you which documents to remove.
Start a new project
Section titled “Start a new project”Select File > New Project (Command-N). A new project, Untitled, opens immediately. You do not select a location for it yet.
The first time you save it, with File > Save Project (Command-S) or Save when the app asks, the app shows the save panel. Select a location and type a name. The app moves the project there and gives it that name. The session, the undo history and the open editor files continue, and the window title shows the name. Cancel in the panel keeps the project Untitled.
If you open another project, start a new one or quit without saving, the app deletes the Untitled project. The app asks first if the project has changes or if you saved a file in the editor.
Select Resonon > Quit Resonon (Command-Q) or close the main window. The app asks the same
question as before it opens a project. When the app quits, it closes plugin windows and stops its
own session server. The session calls fn teardown() as it closes, if the entry file defines it.