Gin
|
A process with internal and external params. More...
Inherits ProcessorBaseClass, juce::ChangeBroadcaster, and juce::Timer.
Public Member Functions | |
Processor (bool init=true, ProcessorOptions={}) | |
If you override any virtual functions, they won't get called by the constructor. More... | |
Processor (const BusesProperties &ioLayouts, bool init=true, ProcessorOptions={}) | |
~Processor () override | |
void | init () |
void | reset () override |
void | prepareToPlay (double sampleRate, int samplesPerBlock) override |
void | releaseResources () override |
virtual juce::PropertiesFile * | getSettings () |
void | addPluginParameter (gin::Parameter *parameter) |
gin::Parameter * | addExtParam (juce::String uid, juce::String name, juce::String shortName, juce::String label, juce::NormalisableRange< float > range, float defaultValue, SmoothingType st, std::function< juce::String(const gin::Parameter &, float)> textFunction=nullptr) |
gin::Parameter * | addIntParam (juce::String uid, juce::String name, juce::String shortName, juce::String label, juce::NormalisableRange< float > range, float defaultValue, SmoothingType st, std::function< juce::String(const gin::Parameter &, float)> textFunction=nullptr) |
gin::Parameter * | getParameter (const juce::String &uid) |
float | parameterValue (const juce::String &uid) |
int | parameterIntValue (const juce::String &uid) |
bool | parameterBoolValue (const juce::String &uid) |
const juce::Array< gin::Parameter * > & | getPluginParameters () |
bool | isSmoothing () |
virtual bool | isParamLocked (gin::Parameter *) |
virtual juce::File | getProgramDirectory () |
void | loadAllPrograms () |
const juce::String | getName () const override |
bool | acceptsMidi () const override |
bool | producesMidi () const override |
double | getTailLengthSeconds () const override |
int | getNumPrograms () override |
int | getCurrentProgram () override |
const juce::OwnedArray< Program > & | getPrograms () |
Program * | getProgram (const juce::String &name) |
void | setCurrentProgram (juce::String name) |
void | setCurrentProgram (int index) override |
const juce::String | getProgramName (int index) override |
void | changeProgramName (int index, const juce::String &newName) override |
void | saveProgram (juce::String name, juce::String author, juce::String tags) |
void | deleteProgram (int index) |
bool | hasProgram (juce::String name) |
juce::String | getStateXml () |
void | setStateXml (const juce::String &s) |
void | getStateInformation (juce::MemoryBlock &destData) override |
void | setStateInformation (const void *data, int sizeInBytes) override |
Public Attributes | |
const ProcessorOptions | processorOptions |
bool | loadingState = false |
std::unique_ptr< juce::LookAndFeel > | lf |
std::map< juce::String, gin::Parameter * > | parameterMap |
juce::OwnedArray< gin::Parameter > | internalParameters |
juce::ValueTree | state |
int | versionHint = 1 |
Protected Member Functions | |
virtual void | stateUpdated () |
virtual void | updateState () |
void | extractProgram (const juce::String &name, const juce::MemoryBlock &data) |
void | extractProgram (const juce::String &name, const void *data, int sz) |
A process with internal and external params.
Processor::Processor | ( | bool | init = true , |
ProcessorOptions | = {} |
||
) |
If you override any virtual functions, they won't get called by the constructor.
So pass false and then call init manually from your constructor. If you don't override any functions, then it's safe to pass true to the constructor and you don't need to call init.
Processor::Processor | ( | const BusesProperties & | ioLayouts, |
bool | init = true , |
||
ProcessorOptions | = {} |
||
) |
|
override |
void Processor::init | ( | ) |
|
override |
|
override |
|
override |
|
virtual |
void Processor::addPluginParameter | ( | gin::Parameter * | parameter | ) |
gin::Parameter* Processor::addExtParam | ( | juce::String | uid, |
juce::String | name, | ||
juce::String | shortName, | ||
juce::String | label, | ||
juce::NormalisableRange< float > | range, | ||
float | defaultValue, | ||
SmoothingType | st, | ||
std::function< juce::String(const gin::Parameter &, float)> | textFunction = nullptr |
||
) |
gin::Parameter* Processor::addIntParam | ( | juce::String | uid, |
juce::String | name, | ||
juce::String | shortName, | ||
juce::String | label, | ||
juce::NormalisableRange< float > | range, | ||
float | defaultValue, | ||
SmoothingType | st, | ||
std::function< juce::String(const gin::Parameter &, float)> | textFunction = nullptr |
||
) |
gin::Parameter* Processor::getParameter | ( | const juce::String & | uid | ) |
float Processor::parameterValue | ( | const juce::String & | uid | ) |
int Processor::parameterIntValue | ( | const juce::String & | uid | ) |
bool Processor::parameterBoolValue | ( | const juce::String & | uid | ) |
const juce::Array<gin::Parameter*>& Processor::getPluginParameters | ( | ) |
bool Processor::isSmoothing | ( | ) |
|
virtual |
|
virtual |
void Processor::loadAllPrograms | ( | ) |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
const juce::OwnedArray<Program>& Processor::getPrograms | ( | ) |
Program* Processor::getProgram | ( | const juce::String & | name | ) |
void Processor::setCurrentProgram | ( | juce::String | name | ) |
|
override |
|
override |
|
override |
void Processor::saveProgram | ( | juce::String | name, |
juce::String | author, | ||
juce::String | tags | ||
) |
void Processor::deleteProgram | ( | int | index | ) |
bool Processor::hasProgram | ( | juce::String | name | ) |
juce::String Processor::getStateXml | ( | ) |
void Processor::setStateXml | ( | const juce::String & | s | ) |
|
override |
|
override |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
const ProcessorOptions Processor::processorOptions |
bool Processor::loadingState = false |
std::unique_ptr<juce::LookAndFeel> Processor::lf |
std::map<juce::String, gin::Parameter*> Processor::parameterMap |
juce::OwnedArray<gin::Parameter> Processor::internalParameters |
juce::ValueTree Processor::state |
Referenced by ProcessorEditorBase::makeResizable(), and ProcessorEditorBase::resized().
int Processor::versionHint = 1 |