To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / README @ 19:34d52412039c

History | View | Annotate | Download (8.63 KB)

1

    
2
Vamp Plugin Tester
3
==================
4

    
5
This program tests Vamp audio feature extraction plugins
6
(http://vamp-plugins.org/) for certain common failure cases.
7

    
8
To test a single plugin, run vamp-plugin-tester with the name of your
9
plugin library and plugin identifier, separated by a colon.  For example,
10

    
11
  $ vamp-plugin-tester vamp-example-plugins:amplitudefollower
12

    
13
The plugin library must be installed in the Vamp plugin path (you
14
cannot give the path to the library file).
15

    
16
If you run vamp-plugin-tester with no arguments, it will test all
17
plugins found in your Vamp plugin path.
18

    
19

    
20
Options
21
=======
22

    
23
Supply the -v or --verbose option to tell vamp-plugin-tester to print
24
out the whole content of its returned feature log for diagnostic
25
purposes each time it prints an error or warning that arises from the
26
contents of a returned feature.
27

    
28
Supply the -n or --nondeterministic option to tell vamp-plugin-tester
29
that your plugins are expected to return different results each time
30
they are run.  The default behaviour is to treat different results on
31
separate runs with the same input data as an error.
32

    
33

    
34
Errors and Warnings
35
===================
36

    
37
Each test may cause one or several notes, warnings, or errors to be
38
printed.  A note is printed when behaviour is observed that may be
39
correct behaviour but that is not always anticipated by the plugin
40
developer.  A warning is printed when behaviour is observed that is
41
technically legal but that in practice most often happens by mistake.
42
An error is printed when behaviour is observed that cannot be correct.
43

    
44
vamp-plugin-tester prints all of its commentary to the standard
45
output.  Standard error is usually used for diagnostic output printed
46
by the plugins themselves.
47

    
48
In addition to reports, vamp-plugin-tester runs some tests that are
49
intended to provoke the plugin into unexpected behaviour such as
50
memory errors.  If vamp-plugin-tester crashes during a test, this may
51
be why.  If you have access to a memory checker utility such as
52
valgrind, you are advised to run vamp-plugin-tester under it so as to
53
be informed of any memory errors that do not happen to cause crashes
54
(as well as memory leaks).  The vamp-plugin-tester binaries
55
distributed by QMUL have been compiled with debug information
56
included, in order to facilitate this type of use.
57

    
58

    
59
Error and Warning Reference
60
===========================
61

    
62
 ** ERROR: Failed to load plugin
63

    
64
 The plugin could not be loaded.  Remember that the plugin must be
65
 installed in the Vamp plugin path.
66

    
67
 ** ERROR: (plugin|parameter|output) identifier <x> contains invalid characters
68

    
69
 An identifier contains characters other than the permitted set (ASCII
70
 lower and upper case letters, digits, "-" and "_" only).
71

    
72
 ** ERROR: <field> is empty
73

    
74
 A mandatory field, such as the name of a parameter or output,
75
 contains no text.
76

    
77
 ** WARNING: <field> is empty
78

    
79
 An optional field, such as the description of a parameter or output,
80
 contains no text.
81

    
82
 ** ERROR: Plugin parameter <x> maxValue <= minValue
83

    
84
 The minimum and maximum values given for a parameter are equal or in
85
 the wrong order.
86

    
87
 ** ERROR: Plugin parameter <x> defaultValue out of range
88

    
89
 The default value for a parameter is not within the range defined by
90
 the minimum and maximum values for the parameter.
91

    
92
 ** ERROR: Plugin parameter <x> is quantized, but quantize step is zero
93

    
94
 The quantizeStep value in a parameter with isQuantized true is set to
95
 zero.
96

    
97
 ** WARNING: Plugin parameter <x> value range is not a multiple of quantize step
98

    
99
 A parameter's stated maximum value is not one of the possible values
100
 obtained by adding multiples of the quantize step on to the minimum
101
 value.
102

    
103
 ** WARNING: Plugin parameter <x> has (more|fewer) value names than quantize steps
104

    
105
 A quantized parameter lists some value names for its quantize steps,
106
 but not the right number.
107
 
108
 ** WARNING: Plugin parameter <x> default value is not a multiple of quantize
109
 step beyond minimum
110

    
111
 The default value for a parameter is not a value that the user could
112
 actually obtain, if only offered the quantized values to choose from.
113

    
114
 ** ERROR: Data returned on nonexistent output
115

    
116
 The output number key for a returned feature is outside the range of
117
 outputs listed in the plugin's output descriptor list.
118

    
119
 ** NOTE: No results returned for output <x>
120

    
121
 The plugin returned no features on one of its outputs, when given a
122
 simple test file.  This may be perfectly reasonable behaviour, but
123
 you might like to know about it.
124

    
125
 ** NOTE: Plugin returns features with timestamps on OneSamplePerStep output
126
 ** NOTE: Plugin returns features with durations on OneSamplePerStep output
127

    
128
 Hosts will usually ignore timestamps and durations attached to any
129
 feature returned on a OneSamplePerStep output.
130

    
131
 ** ERROR: Plugin returns features with no timestamps on VariableSampleRate output
132

    
133
 Timestamps are mandatory on all features associated with a
134
 VariableSampleRate output.
135

    
136
 ** WARNING: Plugin returned one or more NaN/inf values
137

    
138
 The plugin returned features containing floating-point not-a-number
139
 or infinity values.  This warning may be associated with a test
140
 involving feeding some unexpected type of data to the plugin.
141
 
142
 ** ERROR: Consecutive runs with separate instances produce different results
143

    
144
 The plugin was constructed and run twice against the same input data,
145
 and returned different features each time.
146

    
147
 If you give the -n or --nondeterministic option, vamp-plugin-tester
148
 will downgrade this error to a note.
149

    
150
 ** ERROR: Consecutive runs with the same instance (using reset) produce different results
151

    
152
 The plugin was constructed, initialised, run against some input data,
153
 reset with a call to its reset() function, and run again against the
154
 same data; and it returned different features on each run.  This is
155
 often a sign of some simple error such as forgetting to implement
156
 reset().
157

    
158
 If you give the -n or --nondeterministic option, vamp-plugin-tester
159
 will downgrade this error to a note.
160

    
161
 ** ERROR: Simultaneous runs with separate instances produce different results
162

    
163
 Two instances of the plugin were constructed and run against the same
164
 input data, giving each block of data to one plugin's process call
165
 and then to the other's, "interleaving" the processing between the
166
 two instances (but within a single application thread); and the two
167
 instances returned different features.  This may indicate ill-advised
168
 use of static data shared between plugin instances.
169

    
170
 If you give the -n or --nondeterministic option, vamp-plugin-tester
171
 will downgrade this error to a note.
172

    
173
 ** WARNING: Consecutive runs with different starting timestamps produce the same result
174

    
175
 The plugin was run twice on the same audio data, but with different
176
 input timestamps, and it returned the same results each time.  While
177
 this is often unproblematic, it can indicate that a plugin failed to
178
 take the input timestamp into account when calculating its output
179
 timestamps (if any).
180

    
181
 If you give the -n or --nondeterministic option, vamp-plugin-tester
182
 will downgrade this warning to a note.
183

    
184
 ** ERROR: Explicitly setting current program to its supposed current value changes the results
185

    
186
 The plugin was constructed and run twice on the same data, once
187
 without changing its "program" setting, and again having set the
188
 program to the vaule returned by getCurrentProgram() (i.e. the same
189
 program that was supposed to be in effect already).  It returned
190
 different results for the two runs, suggesting that some internal
191
 data was changed in selectProgram in a way that differed from its
192
 default.
193

    
194
 If you give the -n or --nondeterministic option, vamp-plugin-tester
195
 will downgrade this error to a note.
196

    
197
 ** ERROR: Explicitly setting parameters to their supposed default values changes the results
198

    
199
 The plugin was constructed and run twice on the same data, once
200
 without changing any of its parameters, and again having set the
201
 parameters to their specified default values.  It returned different
202
 results for the two runs, suggesting that some internal data was
203
 changed when a parameter was set to its default, in a way that
204
 differed from the plugin's initially constructed state.
205

    
206
 If you give the -n or --nondeterministic option, vamp-plugin-tester
207
 will downgrade this error to a note.
208

    
209
 ** WARNING: Constructor takes some time to run: work should be deferred to initialise?
210

    
211
 The plugin took a long time to construct.  You should ensure that the
212
 constructor for the plugin runs as quickly as possible, because it
213
 may be called by a host that is only scanning the properties of all
214
 available plugins on startup.  Any serious initialisation work should
215
 be done in the initialise() function rather than the constructor.
216

    
217

    
218
Authors
219
=======
220

    
221
This program was written at the Centre for Digital Music at Queen
222
Mary, University of London, by Chris Cannam.  Copyright (c) 2009 QMUL.
223