view src/plugins.cpp @ 50:69ab9a6e7aee

Make BulkTuningDifference much faster when working with more than two files in fine-tuning mode, by storing the reference signal and calculating the fine-tuned features from that (shifted the opposite way) while leaving the other features alone at their coarse rotations. Slightly changes the results but not by a significant amount, I think.
author Chris Cannam
date Wed, 10 Jul 2019 18:52:36 +0100
parents f28b34e7ce8d
children 7bdcc40deebe
line wrap: on
line source

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

#include "TuningDifference.h"
#include "BulkTuningDifference.h"

static Vamp::PluginAdapter<TuningDifference> tdAdapter;
static Vamp::PluginAdapter<BulkTuningDifference> bulkTdAdapter;


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

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