plugins/SpecDesc.{cpp,h}: added first draft for SpecDesc
[vamp-aubio-plugins.git] / plugins / Types.cpp
index c5d9a64..1534d1b 100644 (file)
@@ -25,6 +25,15 @@ const char *getAubioNameForOnsetType(OnsetType t)
     return names[(int)t];
 }
 
+const char *getAubioNameForSpecDescType(SpecDescType t)
+{
+    // In the same order as the enum elements in the header
+    static const char *const names[] = {
+        "specflux", "centroid", "spread", "skewness", "kurtosis", "slope", "decrease", "rolloff"
+    };
+    return names[(int)t];
+}
+
 const char *getAubioNameForPitchType(PitchType t)
 {
     // In the same order as the enum elements in the header