2 Copyright (C) 2014 Paul Davis
3 Author: David Robillard
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)
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
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.
20 #ifndef __ardour_parameter_descriptor_h__
21 #define __ardour_parameter_descriptor_h__
23 #include "ardour/variant.h"
27 typedef std::map<const std::string, const float> ScalePoints;
29 /** Descriptor of a parameter or control.
31 * Essentially a union of LADSPA, VST and LV2 info.
33 struct ParameterDescriptor
37 , datatype(Variant::VOID)
54 boost::shared_ptr<ScalePoints> scale_points;
55 uint32_t key; ///< for properties
56 Variant::Type datatype; ///< for properties
57 float lower; ///< for frequencies, this is in Hz (not a fraction of the sample rate)
58 float upper; ///< for frequencies, this is in Hz (not a fraction of the sample rate)
69 bool midinote; ///< only used if integer_step is also true
74 #endif // __ardour_parameter_descriptor_h__