|
Gin
|
Plugin preset/program with file-based storage and parameter management. More...
#include <gin_program.h>
Public Member Functions | |
| Program ()=default | |
| virtual | ~Program ()=default |
| virtual void | loadProcessor (Processor &p) |
| virtual void | saveProcessor (Processor &p) |
| virtual juce::File | getPresetFile (juce::File programDir) |
| virtual void | loadFromFile (juce::File f, bool loadFully) |
| virtual void | saveToDir (juce::File programDir) |
| virtual void | deleteFromDir (juce::File programDir) |
Public Attributes | |
| juce::File | file |
| juce::String | name |
| juce::String | author |
| juce::StringArray | tags |
| bool | isReadOnly = false |
| When true, this program was loaded from a factory directory and the Processor will refuse to overwrite, rename, or delete its file. | |
| bool | fullyLoaded = false |
| juce::ValueTree | state |
| juce::Array< Parameter::ParamState > | parameters |
Plugin preset/program with file-based storage and parameter management.
Program represents a single preset that stores all parameter values and optionally custom plugin state. Programs can be saved to/loaded from XML files and include metadata like name, author, and tags.
Key Features:
Programs are typically managed by the Processor class, which handles automatic loading from preset directories and file watching for changes.
Usage:
|
default |
|
virtualdefault |
|
virtual |
| juce::File Program::file |
| juce::String Program::name |
| juce::String Program::author |
| juce::StringArray Program::tags |
When true, this program was loaded from a factory directory and the Processor will refuse to overwrite, rename, or delete its file.
The in-memory entry can still be removed (e.g. when saving over it with a user copy); the next directory scan will simply reload it. Defaults to false to preserve legacy behaviour.
| juce::ValueTree Program::state |
| juce::Array<Parameter::ParamState> Program::parameters |