view chroma-compare-plugin/plugins.cpp @ 13:c74071731d74

The bulk of the chroma-compare implementation. Should be using the newly refactored Chromagram class from libcq though (chroma is currently upside-down!)
author Chris Cannam
date Wed, 04 Feb 2015 15:10:07 +0000
parents 23572f9d25d9
children
line wrap: on
line source

#include <vamp/vamp.h>
#include <vamp-sdk/PluginAdapter.h>

#include "TuningDifference.h"

static Vamp::PluginAdapter<TuningDifference> tdAdapter;


const VampPluginDescriptor *
vampGetPluginDescriptor(unsigned int version, unsigned int index)
{
    if (version < 1) return 0;

    switch (index) {
    case  0: return tdAdapter.getDescriptor();
    default: return 0;
    }
}