Mercurial > hg > tuning-difference
annotate 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 |
rev | line source |
---|---|
Chris@0 | 1 |
Chris@0 | 2 #include <vamp/vamp.h> |
Chris@0 | 3 #include <vamp-sdk/PluginAdapter.h> |
Chris@0 | 4 |
Chris@0 | 5 #include "TuningDifference.h" |
Chris@0 | 6 |
Chris@0 | 7 static Vamp::PluginAdapter<TuningDifference> tdAdapter; |
Chris@0 | 8 |
Chris@0 | 9 |
Chris@0 | 10 const VampPluginDescriptor * |
Chris@0 | 11 vampGetPluginDescriptor(unsigned int version, unsigned int index) |
Chris@0 | 12 { |
Chris@0 | 13 if (version < 1) return 0; |
Chris@0 | 14 |
Chris@0 | 15 switch (index) { |
Chris@0 | 16 case 0: return tdAdapter.getDescriptor(); |
Chris@0 | 17 default: return 0; |
Chris@0 | 18 } |
Chris@0 | 19 } |
Chris@0 | 20 |
Chris@0 | 21 |