diff plugins/Types.cpp @ 89:e9eb5753796b

plugins/SpecDesc.{cpp,h}: added first draft for SpecDesc
author Paul Brossier <piem@piem.org>
date Fri, 30 Jan 2015 18:21:15 +0100
parents a2301c902711
children f80b207ccd15
line wrap: on
line diff
--- a/plugins/Types.cpp	Fri Jan 30 18:20:14 2015 +0100
+++ b/plugins/Types.cpp	Fri Jan 30 18:21:15 2015 +0100
@@ -25,6 +25,15 @@
     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