std::string plugin(plugin::Plugin *plugin, std::string filename="")
Returns the path of an asset in the plugin's dir.
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
DSP processor instance for your module.
Definition Module.hpp:29
Type information for a module.
Definition Model.hpp:34
virtual app::ModuleWidget * createModuleWidget(engine::Module *m)
Creates a ModuleWidget with a Module attached.
Definition Model.hpp:67
std::string name
Human readable name for your model, e.g.
Definition Model.hpp:42
virtual ~Model()
Definition Model.hpp:59
std::string manualUrl
The manual of the module.
Definition Model.hpp:51
std::string getManualUrl()
Returns the module or plugin manual URL, whichever exists.
bool hidden
Hides model from the Module Browser but able to be loaded from a patch file.
Definition Model.hpp:57
void setFavorite(bool favorite)
std::string getFactoryPresetDirectory()
std::string modularGridUrl
Definition Model.hpp:52
std::list< int > tagIds
List of tag IDs representing the function(s) of the module.
Definition Model.hpp:46
void appendContextMenu(ui::Menu *menu, bool inBrowser=false)
Appends items to menu with useful Model information.
void fromJson(json_t *rootJ)
std::string slug
Must be unique.
Definition Model.hpp:40
virtual engine::Module * createModule()
Creates a Module.
Definition Model.hpp:61
Plugin * plugin
Definition Model.hpp:35
std::string getFullName()
Returns the branded name of the model, e.g.
std::string description
A one-line summary of the module's purpose.
Definition Model.hpp:48
std::string getUserPresetDirectory()