Mercurial > hg > cepstral-pitchtracker
view libmain.cpp @ 3:9366c8a58778 track
Experimental tracker (on branch)
author | Chris Cannam |
---|---|
date | Mon, 25 Jun 2012 15:28:51 +0100 |
parents | 89c5d5998cda |
children | 2c175adf8736 |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ #include <vamp/vamp.h> #include <vamp-sdk/PluginAdapter.h> #include "SimpleCepstrum.h" #include "CepstrumPitchTracker.h" static Vamp::PluginAdapter<SimpleCepstrum> cepPluginAdapter; static Vamp::PluginAdapter<CepstrumPitchTracker> cepitchPluginAdapter; const VampPluginDescriptor * vampGetPluginDescriptor(unsigned int version, unsigned int index) { if (version < 1) return 0; switch (index) { case 0: return cepPluginAdapter.getDescriptor(); case 1: return cepitchPluginAdapter.getDescriptor(); default: return 0; } }