Library
The Library space is the catalogue of what a composition can use. Its content is read from the same sources the compiler and the runtime use, so it cannot describe a parameter, a range or a preset that does not exist.
| Section | Source of truth |
|---|---|
| Instruments | StandardLibrary/std/instruments.sonata, the file embedded in the compiler: each named instrument binds an engine to one of its presets. |
| Engines | The runtime registry: model, synthesis method, playable range, articulations, parameters with units, ranges and defaults, presets. |
| Effects | The runtime registry: parameters, presets, default mix. |
| Patch nodes | The runtime registry: ports with units, ranges and defaults, output rate. |
| Examples | The .sonata files bundled with the application (the ones the tests compile). |
| Snippets | A short list written for this space; each one is compiled by the tests. |
The counts in the toolbar are the real counts of these sources. A named instrument is a binding of an engine and a preset, not a separate sound engine: the engines number is the number of distinct synthesis models.
Search
Type any words; an item matches when every word is found in its name, description, parameter or preset names, or (for examples and snippets) its code.
Actions
- Insert places the code where it belongs in the main source: a track at the end of the
composition (adding
import std.instrumentswhen missing and choosing an unused track name), an instrument definition before the composition, an effect or a track snippet at the end of the last track. The result is compiled first; if the compiler reports more errors than before, the source is left unchanged and the code is copied to the clipboard instead. An insertion is one undo step. - Copy puts the code on the clipboard.
- Open a Copy opens an example as a new document from a copy; the bundled file is never modified. An example that imports a module of its own folder says so: opened alone, that import cannot be resolved.
Patch nodes can only be copied: they belong inside the graph { } of an instrument, which
this space does not edit (see the Instruments space).