This is a convenience class to create a plugin using PluginGuiMagic. More...
Inherits AudioProcessor.
Public Member Functions | |
MagicProcessor () | |
Creates a MagicProcessor, that inherits juce::AudioProcessor and adds connections to the editable GUI. More... | |
MagicProcessor (const BusesProperties &ioLayouts) | |
MagicProcessor (const std::initializer_list< const short[2]> &channelLayoutList) | |
virtual void | initialiseBuilder (MagicGUIBuilder &builder) |
Override that method to initialise the builder, register your own bespoke components or LookAndFeel classes. More... | |
virtual juce::ValueTree | createGuiValueTree () |
This method is called to create the GUI. More... | |
virtual void | postSetStateInformation () |
If there is anything you need to do after a new state was loaded you can override this method. More... | |
juce::AudioProcessorEditor * | createEditor () override |
bool | hasEditor () const override |
void | getStateInformation (juce::MemoryBlock &destData) override |
void | setStateInformation (const void *data, int sizeInBytes) override |
int | getNumPrograms () override |
int | getCurrentProgram () override |
void | setCurrentProgram (int index) override |
const juce::String | getProgramName (int index) override |
void | changeProgramName (int index, const juce::String &newName) override |
Protected Attributes | |
MagicProcessorState | magicState { *this } |
This is a convenience class to create a plugin using PluginGuiMagic.
It has all wired up for you, The MagicPluginEditor for you to design or use the generic default, the loading and saving of the state and many more.
In the createGuiValueTree() you can create the GUI ValueTree either by using
MagicProcessor | ( | ) |
Creates a MagicProcessor, that inherits juce::AudioProcessor and adds connections to the editable GUI.
The floating editor toolbox allows auto save. To use that add this macro in the constructor to let the editor know the location of the source files:
MagicProcessor | ( | const BusesProperties & | ioLayouts | ) |
MagicProcessor | ( | const std::initializer_list< const short[2]> & | channelLayoutList | ) |
|
virtual |
Override that method to initialise the builder, register your own bespoke components or LookAndFeel classes.
If you override this and you want to use the bundled components don't forget to call those two lines, otherwise you won't have any Components or LookAndFeels to choose from
References MagicGUIBuilder::registerJUCEFactories(), and MagicGUIBuilder::registerJUCELookAndFeels().
Referenced by MagicProcessor::createEditor().
|
virtual |
This method is called to create the GUI.
The default implementation will come up with a ValueTree containing a default Stylesheet and populate the GUI components from the AudioProcessorParameters it finds using getParameterTree() as well as getting the MagicPlotSources.
You can override this method with your bespoke algorithm to create a ValueTree or to load your ValueTree from BinaryData.
Referenced by MagicProcessor::createEditor().
|
virtual |
If there is anything you need to do after a new state was loaded you can override this method.
Referenced by MagicProcessor::setStateInformation().
|
override |
|
override |
|
override |
References MagicProcessorState::getStateInformation(), and MagicProcessor::magicState.
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
protected |