Mercurial > hg > jvamp
comparison org/vamp_plugins/ParameterDescriptor.java @ 28:f2914a92b553
Docs
author | Chris Cannam |
---|---|
date | Mon, 19 Nov 2012 15:12:44 +0000 |
parents | 7b1740a9020a |
children | c9515589be7d |
comparison
equal
deleted
inserted
replaced
27:59b4150c69cb | 28:f2914a92b553 |
---|---|
1 | 1 |
2 package org.vamp_plugins; | 2 package org.vamp_plugins; |
3 | 3 |
4 /** | |
5 * ParameterDescriptor describes the properties of a configurable | |
6 * parameter of a Plugin. | |
7 */ | |
4 public class ParameterDescriptor { | 8 public class ParameterDescriptor { |
9 | |
10 /** | |
11 * The name of the parameter, in computer-usable form. Will | |
12 * contain only the characters [a-zA-Z0-9_-]. | |
13 */ | |
5 public String identifier; | 14 public String identifier; |
15 | |
16 /** | |
17 * The human-readable name of the parameter. | |
18 */ | |
6 public String name; | 19 public String name; |
20 | |
21 /** | |
22 * A human-readable short text describing the parameter. May be | |
23 * empty if the name has said it all already. | |
24 */ | |
7 public String description; | 25 public String description; |
26 | |
27 /** | |
28 * The unit of the parameter, in human-readable form. | |
29 */ | |
8 public String unit; | 30 public String unit; |
31 | |
32 /** | |
33 * The minimum value of the parameter. | |
34 */ | |
9 public float minValue; | 35 public float minValue; |
36 | |
37 /** | |
38 * The maximum value of the parameter. | |
39 */ | |
10 public float maxValue; | 40 public float maxValue; |
41 | |
42 /** | |
43 * The default value of the parameter. The plugin should | |
44 * ensure that parameters have this value on initialisation | |
45 * (i.e. the host is not required to explicitly set parameters | |
46 * if it wants to use their default values). | |
47 */ | |
11 public float defaultValue; | 48 public float defaultValue; |
49 | |
50 /** | |
51 * True if the parameter values are quantized to a particular | |
52 * resolution. | |
53 */ | |
12 public boolean isQuantized; | 54 public boolean isQuantized; |
55 | |
56 /** | |
57 * Quantization resolution of the parameter values (e.g. 1.0 | |
58 * if they are all integers). Undefined if isQuantized is | |
59 * false. | |
60 */ | |
13 public float quantizeStep; | 61 public float quantizeStep; |
62 | |
63 /** | |
64 * Names for the quantized values. If isQuantized is true, | |
65 * this may either be empty or contain one string for each of | |
66 * the quantize steps from minValue up to maxValue inclusive. | |
67 * Undefined if isQuantized is false. | |
68 * | |
69 * If these names are provided, they should be shown to the | |
70 * user in preference to the values themselves. The user may | |
71 * never see the actual numeric values unless they are also | |
72 * encoded in the names. | |
73 */ | |
14 public String[] valueNames; | 74 public String[] valueNames; |
15 | 75 |
16 ParameterDescriptor() { | 76 ParameterDescriptor() { |
17 minValue = 0; | 77 minValue = 0; |
18 maxValue = 0; | 78 maxValue = 0; |