LMMS
Loading...
Searching...
No Matches
juce_AudioProcessorParameterWithID.cpp
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
30 const String& nameToUse,
33 paramID (idToUse.getParamID()),
34 name (nameToUse),
35 label (attributes.getLabel()),
36 category (attributes.getCategory()),
37 meta (attributes.getMeta()),
38 automatable (attributes.getAutomatable()),
39 inverted (attributes.getInverted())
40{
41}
42
43String AudioProcessorParameterWithID::getName (int maximumStringLength) const { return name.substring (0, maximumStringLength); }
46
47} // namespace juce
Category
Definition juce_AudioProcessorParameter.h:231
int getVersionHint() const
Definition juce_AudioProcessorParameter.h:280
Definition juce_AudioProcessorParameterWithID.h:67
const String label
Definition juce_AudioProcessorParameterWithID.h:167
const String name
Definition juce_AudioProcessorParameterWithID.h:164
AudioProcessorParameterWithID(const ParameterID &parameterID, const String &parameterName, const AudioProcessorParameterWithIDAttributes &attributes={})
Definition juce_AudioProcessorParameterWithID.cpp:29
Category getCategory() const override
Definition juce_AudioProcessorParameterWithID.cpp:45
const String paramID
Definition juce_AudioProcessorParameterWithID.h:161
String getLabel() const override
Definition juce_AudioProcessorParameterWithID.cpp:44
const Category category
Definition juce_AudioProcessorParameterWithID.h:170
String getName(int) const override
Definition juce_AudioProcessorParameterWithID.cpp:43
bool inverted
Definition juce_AudioProcessorParameterWithID.h:182
bool automatable
Definition juce_AudioProcessorParameterWithID.h:182
bool meta
Definition juce_AudioProcessorParameterWithID.h:182
Definition juce_AudioProcessorParameterWithID.h:33
Definition juce_String.h:53
Definition carla_juce.cpp:31
Definition juce_HostedAudioProcessorParameter.h:36