SampleType » History » Version 11

« Previous - Version 11/72 (diff) - Next » - Current version
Chris Cannam, 2014-02-10 01:14 PM


Output Sample Type and Sample Rate

A Vamp plugin takes audio as input and returns a series of descriptive feature structures.

The audio input is provided as a series of fixed-length sample blocks provided to successive calls to the plugin's process function. The plugin may return any number of features from each process call, and may also return any number of features from getRemainingFeatures after all the audio has been received.

Features are each associated with a particular output of the plugin. The plugin declares that each output has certain properties, which constrain the sort of feature data the host can expect to see. (See diagram.)

A feature may or may not have a timestamp. Whether a timestamp is provided -- and, if it is provided, what it means -- are determined by the SampleType and SampleRate properties of the plugin output on which the feature is returned.

SampleType

A plugin output's SampleType property may be either OneSamplePerStep, FixedSampleRate, or VariableSampleRate. Here's what they mean.

OneSamplePerStep

This is the simplest option. If an output is declared as having a SampleType of OneSamplePerStep, then any features returned from

feature-structures-20pc.png 25.3 KB, downloaded 2040 times Chris Cannam, 2014-02-10 12:04 PM