Search guides and the APICtrl K
  1. API reference
  2. Plugin model

presets.h

Factory presets.

#include <sonore/presets.h>
On this page

Design notes

A plugin with eight knobs and no starting points is a plugin most people never hear at its best. Presets are plain data on the descriptor: a name and the parameter values, in the contract's index order: the same order the DSP and the UI already agree on, so nothing new has to be kept in step.

Deliberately NOT a file format. Presets ship compiled into the binary, which means they cannot go missing, cannot drift from the parameter set that shipped with them, and cost nothing to load. The host's own preset system handles user-saved states through the state extension we already implement.

Types 1

One factory preset. values must have exactly the plugin's parameter count, in index order; a mismatch is refused at load rather than partially applied.

Functions 1

↑↓ to move↵ to openEvery public name in the headers, and every guide