|
Krotos Modules 3
|
#include <Kwidget_Reformer.h>
Classes | |
| class | Listener |
| struct | Parameters |
Public Types | |
| enum | GuiTypes { Normal = 0 , Sampler , Granular , Vehicle } |
Public Types inherited from krotos::Kwidget | |
| enum | DragID_Index { KwidgetID = 0 , ParameterID = 1 } |
Public Member Functions | |
| void | addListener (Listener *listenerToAdd) |
| void | removeListener (Listener *listenerToRemove) |
| Kwidget_Reformer (const String &id) | |
| void | createNestedKwidgets (KwidgetAudioProcessor &) override |
| bool | isDroneVoice (int voiceIdx) |
| void | noteOn (int voiceIdx, int midiNote, float velocity) override |
| void | noteOff (int voiceIdx, float velocity) override |
| void | noteCleared (int voiceIdx) override |
| bool | isActive (int voiceIdx) override |
| bool | isUCSEnabled () |
| Returns true if the UCS-based search has initialised successfully and is ready for use. | |
| KrotosSampleOscillatorSound * | getSound () |
| void | canReadSpecificFiles (bool canRead) |
Public Member Functions inherited from krotos::Kwidget | |
| Kwidget (const String &kwidgetType, const String &kwidgetID) | |
| virtual | ~Kwidget ()=default |
| void | init () |
| std::unique_ptr< KwidgetProcessor > | createVoice () |
| std::unique_ptr< KwidgetGUI > | createControls () |
| KwidgetProcessor * | getVoice (int idx) const |
| int | getNumVoices () const |
| KwidgetProcessor * | getActiveVoice () const |
| void | addModulator (const String ¶mID, Kwidget *modulator, int modulatorIdx, float depth=0.99f, KAttachment::Polarity=KAttachment::Polarity::Bipolar) |
| void | removeModulator (const String ¶mID, Kwidget *modulator, int modulatorIdx) |
| void | setModulatorDepth (const String ¶mID, Kwidget *modulator, int modulatorIdx, float depth) |
| void | setModulatorPolarity (const String ¶mID, Kwidget *modulator, int modulatorIdx, KAttachment::Polarity polarity) |
| const std::vector< std::shared_ptr< KParameter > > & | getParameters () const |
| KParameter * | getParameter (const String ¶meterID) const noexcept |
| Get a raw pointer to a KParameter belonging to this Kwidget's KwidgetProcessor. Useful for low overhead direct parameter access. | |
| std::shared_ptr< KParameter > | getParameterToAttach (const String ¶meterID) const noexcept |
| Get a shared pointer to a KParameter, for use with KParameter::Listener objects and situations where the parameter lifetime goes beyond local scope. | |
| CustomParameter * | getCustomParameter (const String ¶meterID) |
| CustomParameterTree * | getCustomParameterTree (const Identifier &type) |
| Get a CustomParameterTree belonging to this Kwidget. | |
| template<typename T > | |
| T * | getCustomParameter (const Identifier &type) |
| Get the CustomParameterTree subclass object of the specified type. | |
| void | notifyAllParametersListeners () |
| Call every parameter's value changed listeners with their current values. | |
| const ValueTree & | getState () |
| virtual void | setState (const ValueTree &newState, KwidgetAudioProcessor &processor) |
| void | flushState () |
| bool | isModulator () const |
| int | getNumModulators () const |
| const String & | getKwidgetType () const |
| const String & | getKwidgetID () const |
| const String & | getKwidgetVersionFromCurrentState () const |
| String | getKwidgetVersion () const |
| virtual const String & | getKwidgetLabel () |
| StringArray | getDragID (const String ¶meterID) |
| bool | isAChildKwidget () |
| std::vector< Kwidget * > & | getChildKwidgets () |
| bool | isStateChanging () |
| void | addChildKwidget (Kwidget *child) |
| void | removeChildKwidgetFromTree (String kwidgetID) |
| Kwidget * | findChildKwidget (String kiwdgetID) |
| void | addParameterCallback (const String ¶mID, std::function< void(float)> callback) |
| void | addVersionedParameterCallback (StringRef kwidgetVersionTheParameterChangedIn, const String ¶mID, std::function< void(float)> callback) |
| Add an action to be performed when a specified parameter of a specific kwidget version changes value. This can be used to implement backwards compatibility when older versions of the kwidget state are loaded, and the parameters in newer versions may have been changed or removed. | |
| int | getTemplateID () |
Public Member Functions inherited from krotos::ResourceLock | |
| ResourceLock () | |
| bool | requestAccess (const StringRef id) |
| Called by a client to request access to the resource. | |
| bool | hasAccess (const StringRef id) const |
| Called by a client to enquire whether it has access to the resource. | |
| void | finishedAccessing (const StringRef id) |
| Called by a client to inform the resource that it no longer needs access. | |
| void | setAccessible (bool isAccessible) |
| Called by the resource to grant or deny access to clients. | |
Static Public Attributes | |
| static const String | Version = "1" |
| static const String | embeddingsFilePath |
| static const String | embeddingsFilePathFull |
| static const StringArray | ModeNames = {"Sampler", "Granular", "Vehicle"} |
| static const StringArray | MIDIModeNames = {"All Notes", "C3", "C#3", "D3", "D#3", "E3"} |
| static const int | MaxSegmentationMethods = 129 |
| static const std::map< int, String > | SegmentationMethods |
| static const int | MaxFeatureExtrMethods = 193 |
| static const std::map< int, String > | FeatureExtrMethods |
Protected Member Functions | |
| std::vector< ParameterInfo > | createParameters () override |
| std::unique_ptr< KwidgetProcessor > | createProcessor () override |
| std::unique_ptr< KwidgetGUI > | createGUI () override |
| size_t | numGUIImplementations () override |
| String | getGuiName (int id) override |
Protected Member Functions inherited from krotos::Kwidget | |
| void | addChildGuis (std::unique_ptr< KwidgetGUI > &parentGui) |
| CustomParameter * | createAndAddCustomParameter (const String ¶mID, const var &value) |
| template<typename T > | |
| T * | createAndAddCustomParameter (const Identifier &type) |
| Create a highly customizable piece of state for this Kwidget by appending a subclass of CustomParameterTree to this Kwidget's state. | |
| void | setKwidgetVersion (const String &kwidgetVersionString) |
Protected Attributes | |
| std::unique_ptr< NearestNeighbourSearch > | m_nearestNeighbourSearch |
| std::unique_ptr< CatIDSearch > | m_categorySearch |
| const std::vector< std::pair< String, GuiTypes > > | m_reformerGuiTypes |
Protected Attributes inherited from krotos::Kwidget | |
| std::vector< Kwidget * > | m_childKwidgets |
Private Member Functions | |
| void | noteOnInternal (int voiceIdx, int midiNote, float velocity) |
| void | noteOffInternal (int voiceIdx, float velocity) |
| void | noteClearedInternal (int voiceIdx) |
| void | soloActivate () |
| Called When the state of our solo button is selected true [SOLO]. | |
| void | soloDeActivate () |
| Called When the state of our solo button is selected false [SOLO]. | |
| void | loadFiles (const StringArray &files) |
| void | updateSamplesTree () |
Private Attributes | |
| bool | m_enableNOR {false} |
| MIDIMode | m_activeMIDIMode {MIDIMode::All} |
| bool | m_autoplayEnabled {false} |
| KrotosSampleOscillatorSound | m_soSound |
| ListenerList< Listener > | m_listeners |
| bool | m_readSpecificFiles {false} |
| float | m_soloValue {0.0f} |
| SamplesTree * | m_samplesTree |
Additional Inherited Members | |
Static Public Member Functions inherited from krotos::Kwidget | |
| static String | getParentID (String childKwidgetID) |
| krotos::Kwidget_Reformer::Kwidget_Reformer | ( | const String & | id | ) |
| void krotos::Kwidget_Reformer::addListener | ( | Listener * | listenerToAdd | ) |
|
inline |
|
overrideprotectedvirtual |
Override this method to define the type of KwidgetGUI used by this Kwidget.
Implements krotos::Kwidget.
|
overridevirtual |
kwidget may create its own nested kwidgets within this method If the pointers are pushed onto the m_childKwidgets vector the child kwidgets will be deleted by the system when the parent is deleted
Reimplemented from krotos::Kwidget.
|
overrideprotectedvirtual |
Define all the parameters that this processor will have here.
Parameters are defined with a ParameterInfo struct requiring the following parameters:
Implements krotos::Kwidget.
|
overrideprotectedvirtual |
Override this method to define the type of KwidgetProcessor used by this Kwidget.
Implements krotos::Kwidget.
|
overrideprotectedvirtual |
override to return the names of the Gui representation
Reimplemented from krotos::Kwidget.
|
inline |
|
overridevirtual |
Reimplemented from krotos::Kwidget.
|
inline |
| bool krotos::Kwidget_Reformer::isUCSEnabled | ( | ) |
Returns true if the UCS-based search has initialised successfully and is ready for use.
|
private |
|
overridevirtual |
Send a message to a particular voice that it has been turned off and will receive no more calls to its process function.
| voiceIdx | The index of the voice that is being cleared. |
Reimplemented from krotos::Kwidget.
|
private |
|
overridevirtual |
Send a 'note off' message to a particular voice. Note: Note on and off messages do not by default get sent to child Kwidgets parents of child kwidgets can override these methods and pass the messages to their childern if required If you do override, remember to call the base class first from your new overridden method
| voiceIdx | The index of the voice you would like to turn on. |
| velocity | The velocity of the note event. |
Reimplemented from krotos::Kwidget.
|
private |
|
overridevirtual |
Send a 'note on' message to a particular voice. Note: Note on and off messages do not by default get sent to child Kwidgets parents of child kwidgets can override these methods and pass the messages to their childern if required If you do override, remember to call the base class first from your new overridden method
| voiceIdx | The index of the voice you would like to turn on. |
| midiNote | The integer value of the MIDI note to use. |
| velocity | The velocity of the note event. |
Reimplemented from krotos::Kwidget.
|
private |
|
inlineoverrideprotectedvirtual |
Reimplemented from krotos::Kwidget.
| void krotos::Kwidget_Reformer::removeListener | ( | Listener * | listenerToRemove | ) |
|
private |
Called When the state of our solo button is selected true [SOLO].
|
private |
Called When the state of our solo button is selected false [SOLO].
|
private |
|
static |
|
static |
|
static |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |