ardour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
ardour
ardour
parameter_descriptor.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2014 Paul Davis
3
Author: David Robillard
4
5
This program is free software; you can redistribute it and/or modify it
6
under the terms of the GNU General Public License as published by the Free
7
Software Foundation; either version 2 of the License, or (at your option)
8
any later version.
9
10
This program is distributed in the hope that it will be useful, but WITHOUT
11
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
675 Mass Ave, Cambridge, MA 02139, USA.
18
*/
19
20
#ifndef __ardour_parameter_descriptor_h__
21
#define __ardour_parameter_descriptor_h__
22
23
#include "
ardour/variant.h
"
24
25
#include "
evoral/Parameter.hpp
"
26
#include "
evoral/ParameterDescriptor.hpp
"
27
28
namespace
ARDOUR
{
29
30
typedef
std::map<const std::string, const float>
ScalePoints
;
31
36
struct
LIBARDOUR_API
ParameterDescriptor
:
public
Evoral::ParameterDescriptor
37
{
38
enum
Unit
{
39
NONE
,
40
DB
,
41
MIDI_NOTE
,
42
HZ
,
43
};
44
45
ParameterDescriptor
(
const
Evoral::Parameter
& parameter);
46
47
ParameterDescriptor
();
48
50
void
update_steps();
51
52
std::string
label
;
53
std::string
print_fmt
;
54
boost::shared_ptr<ScalePoints>
scale_points
;
55
uint32_t
key
;
56
Variant::Type
datatype
;
57
AutomationType
type
;
58
Unit
unit
;
59
float
step
;
60
float
smallstep
;
61
float
largestep
;
62
bool
integer_step
;
63
bool
logarithmic
;
64
bool
sr_dependent
;
65
bool
min_unbound
;
66
bool
max_unbound
;
67
bool
enumeration
;
68
};
69
70
}
// namespace ARDOUR
71
72
#endif // __ardour_parameter_descriptor_h__
ARDOUR::ParameterDescriptor::Unit
Unit
Definition:
parameter_descriptor.h:38
ARDOUR::ParameterDescriptor
Definition:
parameter_descriptor.h:36
ARDOUR::ParameterDescriptor::max_unbound
bool max_unbound
Definition:
parameter_descriptor.h:66
ARDOUR::ScalePoints
std::map< const std::string, const float > ScalePoints
Definition:
parameter_descriptor.h:30
ARDOUR::ParameterDescriptor::HZ
Frequency in Hertz.
Definition:
parameter_descriptor.h:42
ARDOUR::ParameterDescriptor::key
uint32_t key
for properties
Definition:
parameter_descriptor.h:55
ARDOUR::ParameterDescriptor::unit
Unit unit
Definition:
parameter_descriptor.h:58
ARDOUR::ParameterDescriptor::label
std::string label
Definition:
parameter_descriptor.h:52
boost::shared_ptr< ScalePoints >
ARDOUR::ParameterDescriptor::DB
Decibels.
Definition:
parameter_descriptor.h:40
ARDOUR::ParameterDescriptor::step
float step
Definition:
parameter_descriptor.h:59
ARDOUR::ParameterDescriptor::integer_step
bool integer_step
Definition:
parameter_descriptor.h:62
variant.h
ARDOUR
Definition:
amp.h:29
ARDOUR::ParameterDescriptor::print_fmt
std::string print_fmt
format string for pretty printing
Definition:
parameter_descriptor.h:53
ARDOUR::ParameterDescriptor::MIDI_NOTE
MIDI note number.
Definition:
parameter_descriptor.h:41
ARDOUR::ParameterDescriptor::min_unbound
bool min_unbound
Definition:
parameter_descriptor.h:65
ARDOUR::AutomationType
AutomationType
Definition:
types.h:121
ARDOUR::ParameterDescriptor::logarithmic
bool logarithmic
Definition:
parameter_descriptor.h:63
ARDOUR::ParameterDescriptor::sr_dependent
bool sr_dependent
Definition:
parameter_descriptor.h:64
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:40
ARDOUR::ParameterDescriptor::type
AutomationType type
Definition:
parameter_descriptor.h:57
ARDOUR::ParameterDescriptor::largestep
float largestep
Definition:
parameter_descriptor.h:61
Evoral::Parameter
Definition:
Parameter.hpp:40
ARDOUR::ParameterDescriptor::NONE
No unit.
Definition:
parameter_descriptor.h:39
ARDOUR::Variant::Type
Type
Definition:
variant.h:39
ARDOUR::ParameterDescriptor::scale_points
boost::shared_ptr< ScalePoints > scale_points
Definition:
parameter_descriptor.h:54
Parameter.hpp
ParameterDescriptor.hpp
Evoral::ParameterDescriptor
Definition:
ParameterDescriptor.hpp:25
ARDOUR::ParameterDescriptor::smallstep
float smallstep
Definition:
parameter_descriptor.h:60
ARDOUR::ParameterDescriptor::datatype
Variant::Type datatype
for properties
Definition:
parameter_descriptor.h:56
ARDOUR::ParameterDescriptor::enumeration
bool enumeration
Definition:
parameter_descriptor.h:67
Generated on Sun May 24 2015 12:15:05 for ardour by
1.8.8