fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
ParamChoice.h
1/***************************************************************************************************
2 ██████ █████ █████ █████
3 ███░░███ ░░███ ░░███ ░░███
4 ░███ ░░░ █████ ░███████ ██ ██ █████ ███████ ░███ █████
5 ███████ ███░░ ░███░░███ ░░ ░░ ███░░ ░░░███░ ░███░░███
6 ░░░███░ ░░█████ ░███ ░███ ░░█████ ░███ ░██████░
7 ░███ ░░░░███ ░███ ░███ ░░░░███ ░███ ███ ░███░░███
8 █████ ██████ ████ █████ ██ ██ ██████ ░░█████ ████ █████
9 ░░░░░ ░░░░░░ ░░░░ ░░░░░ ░░ ░░ ░░░░░░ ░░░░░ ░░░░ ░░░░░
10
11 fantastic spatial holophonic synthesis tool kit
12
13 copyright (c) fabian hummel
14 www.github.com/fshstk
15 www.fshstk.com
16
17 this file is part of the fantastic spatial holophonic synthesis toolkit (fsh::stk)
18 fsh::stk is free software: it is provided under the terms of the gnu general public license v3.0
19 www.gnu.org/licenses/gpl-3.0
20***************************************************************************************************/
21
22#pragma once
23#include <juce_audio_processors/juce_audio_processors.h>
24
25namespace fsh::plugin
26{
44{
46 using Attributes = juce::AudioParameterChoiceAttributes;
47
48 juce::ParameterID id;
49 juce::String name;
50 juce::StringArray choices;
51 float defaultIndex = 0.0;
53
55 auto create() const
56 {
57 return std::make_unique<juce::AudioParameterChoice>(
59 }
60};
61} // namespace fsh::plugin
Used to add a choice (enum) parameter to a plugin.
Definition ParamChoice.h:44
auto create() const
Creates a juce::AudioParameterChoice object from the given parameters.
Definition ParamChoice.h:55
juce::AudioParameterChoiceAttributes Attributes
Used to specify the parameter's attributes, e.g. a label. See the JUCE docs for details.
Definition ParamChoice.h:46
Attributes attributes
The parameter's attributes, e.g. a label.
Definition ParamChoice.h:52
float defaultIndex
The parameter's default value, as an index into the choices array.
Definition ParamChoice.h:51
juce::ParameterID id
The parameter's unique ID, used to identify it in the DAW.
Definition ParamChoice.h:48
juce::StringArray choices
The parameter's choices, displayed in the DAW's automation.
Definition ParamChoice.h:50
juce::String name
The parameter's name, displayed in the DAW's automation.
Definition ParamChoice.h:49