fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
ParamBool.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{
43{
45 using Attributes = juce::AudioParameterBoolAttributes;
46
47 juce::ParameterID id;
48 juce::String name;
49 float defaultVal = false;
51
53 auto create() const
54 {
55 return std::make_unique<juce::AudioParameterBool>(id, name, defaultVal, attributes);
56 }
57};
58} // namespace fsh::plugin
Used to add a boolean parameter to a plugin.
Definition ParamBool.h:43
Attributes attributes
The parameter's attributes, e.g. a label.
Definition ParamBool.h:50
juce::String name
The parameter's name, displayed in the DAW's automation.
Definition ParamBool.h:48
juce::ParameterID id
The parameter's unique ID, used to identify it in the DAW.
Definition ParamBool.h:47
float defaultVal
The parameter's default value.
Definition ParamBool.h:49
auto create() const
Creates a juce::AudioParameterBool object from the given parameters.
Definition ParamBool.h:53
juce::AudioParameterBoolAttributes Attributes
Used to specify the parameter's attributes, e.g. a label. See the JUCE docs for details.
Definition ParamBool.h:45