Project Layout
A project is the folder holding resonon.toml, and everything below it. resonon new and
resonon init create one; their flags are in the
CLI reference.
Files and folders
Section titled “Files and folders”my-song/├── resonon.toml the manifest├── resonon.lock exact dependency commits├── src/│ ├── main.non a piece's entry point│ └── lib.non a library's entry point├── scripts/ scripts for resonon run, such as a bounce├── lib/ your own modules├── kits/ sampler kits that travel with the project├── scales/ Scala tunings├── dependencies/ installed packages├── native/ a native extension's Rust crate├── bin/ a native extension's built libraries├── renders/ renders and MIDI exports├── session/ the saved project session├── samples/ samples copied by Collect and Save├── README.md├── LICENSE├── AGENTS.md└── .gitignore| Path | Holds | Created by | Written by |
|---|---|---|---|
resonon.toml | The manifest | new, init | install, update, remove, collect, kits remove, you |
resonon.lock | The lock file | install | install, update, remove |
src/main.non | The entry file: Open, Reset Project, Run File Live and resonon run evaluate it; entry in the manifest names another | new, init | you |
src/lib.non | The module a package’s users import | new --lib, --native | you |
scripts/ | Scripts for resonon run <script>, such as a bounce | you | you |
lib/ | Modules found by use | you | you |
kits/ | Kits found by Kit("…") | new --kit (with .gitkeep), collect | collect, you |
scales/ | .scl files found by load_scala | you | you |
dependencies/<name>/ | One installed package each | install | install, update, remove |
native/ | Cargo.toml and src/lib.rs of the extension | new --native | you |
bin/ | The extension’s library, built by resonon build | new --native (with .gitkeep) | build |
renders/<name>_<date>_<time>/ | One render or midi_export call | render, midi_export | the same |
session/ | The saved session document and plugin state | Save Project Session, resonon save | the same |
samples/collected-*/ | Samples and kits copied into the project | Collect and Save Project Session, resonon save --collect | the same |
README.md, LICENSE | A readme; the MIT licence with the current year | new, init | you |
AGENTS.md | Where a coding agent starts: resonon reference, which includes the agent guide | new, init | you |
.gitignore | dependencies/ and renders/; with --native also native/target/ and the built libraries in bin/ | new, init | you |
new and init also run git init, unless the folder is already inside a git repository.
resonon.lock is not ignored: commit it.
The layout of a render and of a preset file is in Levels & Files. Where modules, kits and scales are searched for is in Home & Search Paths.
File types
Section titled “File types”| Extension | What it is | Read | Written |
|---|---|---|---|
.non | resonon source | Run, use | — |
.toml | resonon.toml, kit.toml, preferences.toml | At start and on use | resonon.toml by the package commands |
.lock | resonon.lock | install | The package commands |
.wav | Audio | Samples, kits | render, track.save, clip.save |
.scl | Scala tuning | load_scala | — |
.glsl | GLSL fragment shader | gfx.load_shader | — |
.mid | Standard MIDI File | — | midi_export |
.png | Image | — | screen >> "file.png", render(screen, n) outside macOS |
.mp4 | Video with master audio | — | render(screen, n) on macOS |
.preset | A plugin’s state, JSON | load_state | save_state |
A kit folder without a kit.toml has its .wav files found by name
(kit.toml).