72#ifndef __UTILS_VAMP_H__
73#define __UTILS_VAMP_H__
77#include <vamp-hostsdk/host-c.h>
90typedef void ZVampPlugin;
92typedef enum ZVampPluginType
94 Z_VAMP_PLUGIN_BEAT_TRACKER,
95 Z_VAMP_PLUGIN_FIXED_TEMPO_ESTIMATOR,
269const VampPluginDescriptor *
270vamp_get_simple_fixed_tempo_estimator_descriptor (
void);
273vamp_get_plugin (ZVampPluginType type,
float samplerate);
276vamp_plugin_initialize (
277 ZVampPlugin * plugin,
286 ZVampPlugin * plugin,
287 const float *
const * input_buffers,
289 unsigned int samplerate);
292vamp_plugin_get_remaining_features (
293 ZVampPlugin * plugin,
294 unsigned int samplerate);
297vamp_plugin_get_preferred_step_size (ZVampPlugin * plugin);
300vamp_plugin_get_preferred_block_size (ZVampPlugin * plugin);
303vamp_plugin_get_output_descriptors (ZVampPlugin * plugin);
306vamp_output_descriptor_new (
307 const char * identifier,
309 const char * description,
311 bool hasFixedBinCount,
312 bool hasKnownExtents,
330vamp_feature_set_get_list_for_output (
ZVampFeatureSet * self,
int output_idx);
348vamp_feature_free (
void * self);
351vamp_feature_list_free (
void * list);
354vamp_output_descriptor_free (
void * descr);
void vamp_print_all(void)
Prints detected vamp plugins.
GPtrArray * list
Array of allocated ZVampFeature pointers.
GArray * outputs
Array of output indices.
GPtrArray * set
Contains pointers to ZVampFeatureList.
char * label
Label for the sample of this feature.
float * values
Results for a single sample of this feature.
bool has_duration
True if an output feature has a specified duration.
size_t duration
Duration of the output feature.
bool has_timestamp
True if an output feature has its own timestamp.
long timestamp
Timestamp of the output feature.
char * identifier
The name of the output, in computer-usable form.
bool hasKnownExtents
True if the results in each output bin fall within a fixed numeric range (minimum and maximum values)...
float maxValue
Maximum value of the results in the output.
float sampleRate
Sample rate of the output results, as samples per second.
char * description
A human-readable short text describing the output.
char * name
The human-readable name of the output.
int sampleType
Positioning in time of the output results.
bool hasFixedBinCount
True if the output has the same number of values per sample for every output sample.
char * unit
The unit of the output, in human-readable form.
float minValue
Minimum value of the results in the output.
bool hasDuration
True if the returned results for this output are known to have a duration field.