fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
ParamInt.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 struct Range
47 {
48 int min = 0;
49 int max = 0;
50 };
51
53 using Attributes = juce::AudioParameterIntAttributes;
54
55 juce::ParameterID id;
56 juce::String name;
58 float defaultVal = 0.0;
60
62 auto create() const
63 {
64 return std::make_unique<juce::AudioParameterInt>(
66 }
67};
68} // namespace fsh::plugin
Used to specify the parameter's range.
Definition ParamInt.h:47
int min
The parameter's minimum value.
Definition ParamInt.h:48
int max
The parameter's maximum value.
Definition ParamInt.h:49
Used to add an integer parameter to a plugin.
Definition ParamInt.h:44
Range range
The parameter's range.
Definition ParamInt.h:57
auto create() const
Creates a juce::AudioParameterInt object from the given parameters.
Definition ParamInt.h:62
juce::ParameterID id
The parameter's unique ID, used to identify it in the DAW.
Definition ParamInt.h:55
juce::AudioParameterIntAttributes Attributes
Used to specify the parameter's attributes, e.g. a label. See the JUCE docs for details.
Definition ParamInt.h:53
Attributes attributes
The parameter's attributes, e.g. a label.
Definition ParamInt.h:59
float defaultVal
The parameter's default value.
Definition ParamInt.h:58
juce::String name
The parameter's name, displayed in the DAW's automation.
Definition ParamInt.h:56