|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
A class encapsulating a group of AudioProcessorParameters and nested AudioProcessorParameterGroups. More...
#include "juce_AudioProcessorParameterGroup.h"
Classes | |
| class | AudioProcessorParameterNode |
| A child of an AudioProcessorParameterGroup. More... | |
Public Member Functions | |
| AudioProcessorParameterGroup () | |
| Creates an empty AudioProcessorParameterGroup with no name or ID. | |
| AudioProcessorParameterGroup (String groupID, String groupName, String subgroupSeparator) | |
| Creates an empty AudioProcessorParameterGroup. | |
| template<typename ParameterOrGroup > | |
| AudioProcessorParameterGroup (String groupID, String groupName, String subgroupSeparator, std::unique_ptr< ParameterOrGroup > child) | |
| Creates an AudioProcessorParameterGroup with a single child. | |
| template<typename ParameterOrGroup , typename... Args> | |
| AudioProcessorParameterGroup (String groupID, String groupName, String subgroupSeparator, std::unique_ptr< ParameterOrGroup > firstChild, Args &&... remainingChildren) | |
| Creates an AudioProcessorParameterGroup with multiple children. | |
| AudioProcessorParameterGroup (AudioProcessorParameterGroup &&) | |
| Once a group has been added to an AudioProcessor don't try to mutate it by moving or swapping it - this will crash most hosts. | |
| AudioProcessorParameterGroup & | operator= (AudioProcessorParameterGroup &&) |
| Once a group has been added to an AudioProcessor don't try to mutate it by moving or swapping it - this will crash most hosts. | |
| ~AudioProcessorParameterGroup () | |
| Destructor. | |
| String | getID () const |
| Returns the group's ID. | |
| String | getName () const |
| Returns the group's name. | |
| String | getSeparator () const |
| Returns the group's separator string. | |
| const AudioProcessorParameterGroup * | getParent () const noexcept |
| Returns the parent of the group, or nullptr if this is a top-level group. | |
| void | setName (String newName) |
| Changes the name of the group. | |
| const AudioProcessorParameterNode *const * | begin () const noexcept |
| const AudioProcessorParameterNode *const * | end () const noexcept |
| Array< const AudioProcessorParameterGroup * > | getSubgroups (bool recursive) const |
| Returns all subgroups of this group. | |
| Array< AudioProcessorParameter * > | getParameters (bool recursive) const |
| Returns all the parameters in this group. | |
| Array< const AudioProcessorParameterGroup * > | getGroupsForParameter (AudioProcessorParameter *) const |
| Searches this group recursively for a parameter and returns a depth ordered list of the groups it belongs to. | |
| template<typename ParameterOrGroup > | |
| void | addChild (std::unique_ptr< ParameterOrGroup > child) |
| Adds a child to the group. | |
| template<typename ParameterOrGroup , typename... Args> | |
| void | addChild (std::unique_ptr< ParameterOrGroup > firstChild, Args &&... remainingChildren) |
| Adds multiple parameters or sub-groups to this group. | |
A class encapsulating a group of AudioProcessorParameters and nested AudioProcessorParameterGroups.
This class is predominantly write-only; there are methods for adding group members but none for removing them. Ultimately you will probably want to add a fully constructed group to an AudioProcessor.
@tags{Audio}
Definition at line 41 of file juce_AudioProcessorParameterGroup.h.
| juce::AudioProcessorParameterGroup::AudioProcessorParameterGroup | ( | String | groupID, |
| String | groupName, | ||
| String | subgroupSeparator | ||
| ) |
Creates an empty AudioProcessorParameterGroup.
| groupID | A unique identifier for the group. Keep it basic; don't use any special characters like "." and avoid pure integer strings which could collide with legacy parameter IDs. |
| groupName | The group's name, which will be displayed in the host. |
| subgroupSeparator | A separator string to use between the name of this group and the name of any subgroups if this group is flattened. AUv3 and VST3 plug-ins can have multiple layers of nested subgroups, but AU plug-ins cannot have any subgroups. |
Definition at line 57 of file juce_AudioProcessorParameterGroup.cpp.
| juce::AudioProcessorParameterGroup::AudioProcessorParameterGroup | ( | String | groupID, |
| String | groupName, | ||
| String | subgroupSeparator, | ||
| std::unique_ptr< ParameterOrGroup > | child | ||
| ) |
Creates an AudioProcessorParameterGroup with a single child.
| groupID | A unique identifier for the group. Keep it basic; don't use any special characters like "." and avoid pure integer strings which could collide with legacy parameter IDs. |
| groupName | The group's name, which will be displayed in the host. |
| subgroupSeparator | A separator string to use between the name of this group and the name of any subgroups if this group is flattened. AUv3 and VST3 plug-ins can have multiple layers of nested subgroups, but AU plug-ins cannot have any subgroups. |
| child | An AudioProcessorParameter or an AudioProcessorParameterGroup to add to the group. |
Definition at line 118 of file juce_AudioProcessorParameterGroup.h.
| juce::AudioProcessorParameterGroup::AudioProcessorParameterGroup | ( | String | groupID, |
| String | groupName, | ||
| String | subgroupSeparator, | ||
| std::unique_ptr< ParameterOrGroup > | firstChild, | ||
| Args &&... | remainingChildren | ||
| ) |
Creates an AudioProcessorParameterGroup with multiple children.
| groupID | A unique identifier for the group. Keep it basic; don't use any special characters like "." and avoid pure integer strings which could collide with legacy parameter IDs. |
| groupName | The group's name, which will be displayed in the host. |
| subgroupSeparator | A separator string to use between the name of this group and the name of any subgroups if this group is flattened. AUv3 and VST3 plug-ins can have multiple layers of nested subgroups, but AU plug-ins cannot have any subgroups. |
| firstChild | An AudioProcessorParameter or an AudioProcessorParameterGroup to add to the group. |
| remainingChildren | A list of more AudioProcessorParameters or AudioProcessorParameterGroups to add to the group. |
Definition at line 138 of file juce_AudioProcessorParameterGroup.h.
| juce::AudioProcessorParameterGroup::AudioProcessorParameterGroup | ( | AudioProcessorParameterGroup && | other | ) |
Once a group has been added to an AudioProcessor don't try to mutate it by moving or swapping it - this will crash most hosts.
Definition at line 64 of file juce_AudioProcessorParameterGroup.cpp.
| void juce::AudioProcessorParameterGroup::addChild | ( | std::unique_ptr< ParameterOrGroup > | child | ) |
Adds a child to the group.
Do not add children to a group which has itself already been added to the AudioProcessor - the new elements will be ignored.
Definition at line 209 of file juce_AudioProcessorParameterGroup.h.
| void juce::AudioProcessorParameterGroup::addChild | ( | std::unique_ptr< ParameterOrGroup > | firstChild, |
| Args &&... | remainingChildren | ||
| ) |
Adds multiple parameters or sub-groups to this group.
Do not add children to a group which has itself already been added to the AudioProcessor - the new elements will be ignored.
Definition at line 223 of file juce_AudioProcessorParameterGroup.h.
|
noexcept |
Definition at line 101 of file juce_AudioProcessorParameterGroup.cpp.
|
noexcept |
Definition at line 102 of file juce_AudioProcessorParameterGroup.cpp.
| Array< const AudioProcessorParameterGroup * > juce::AudioProcessorParameterGroup::getGroupsForParameter | ( | AudioProcessorParameter * | parameter | ) | const |
Searches this group recursively for a parameter and returns a depth ordered list of the groups it belongs to.
Definition at line 128 of file juce_AudioProcessorParameterGroup.cpp.
| String juce::AudioProcessorParameterGroup::getID | ( | ) | const |
Returns the group's ID.
Definition at line 94 of file juce_AudioProcessorParameterGroup.cpp.
| String juce::AudioProcessorParameterGroup::getName | ( | ) | const |
Returns the group's name.
Definition at line 95 of file juce_AudioProcessorParameterGroup.cpp.
| Array< AudioProcessorParameter * > juce::AudioProcessorParameterGroup::getParameters | ( | bool | recursive | ) | const |
Returns all the parameters in this group.
| recursive | If this is true then this method will fetch all nested parameters using a depth first search. |
Definition at line 121 of file juce_AudioProcessorParameterGroup.cpp.
|
noexcept |
Returns the parent of the group, or nullptr if this is a top-level group.
Definition at line 97 of file juce_AudioProcessorParameterGroup.cpp.
| String juce::AudioProcessorParameterGroup::getSeparator | ( | ) | const |
Returns the group's separator string.
Definition at line 96 of file juce_AudioProcessorParameterGroup.cpp.
| Array< const AudioProcessorParameterGroup * > juce::AudioProcessorParameterGroup::getSubgroups | ( | bool | recursive | ) | const |
Returns all subgroups of this group.
| recursive | If this is true then this method will fetch all nested subgroups using a depth first search. |
Definition at line 114 of file juce_AudioProcessorParameterGroup.cpp.
| AudioProcessorParameterGroup & juce::AudioProcessorParameterGroup::operator= | ( | AudioProcessorParameterGroup && | other | ) |
Once a group has been added to an AudioProcessor don't try to mutate it by moving or swapping it - this will crash most hosts.
Definition at line 73 of file juce_AudioProcessorParameterGroup.cpp.
Changes the name of the group.
If you do this after the group has been added to an AudioProcessor, call updateHostDisplay() to inform the host of the change. Not all hosts support dynamic group name changes.
Definition at line 99 of file juce_AudioProcessorParameterGroup.cpp.