comparison 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
comparison
equal deleted inserted replaced
88:a35ba53eef7a 89:e9eb5753796b
23 "energy", "specdiff", "hfc", "complex", "phase", "kl", "mkl", "specflux" 23 "energy", "specdiff", "hfc", "complex", "phase", "kl", "mkl", "specflux"
24 }; 24 };
25 return names[(int)t]; 25 return names[(int)t];
26 } 26 }
27 27
28 const char *getAubioNameForSpecDescType(SpecDescType t)
29 {
30 // In the same order as the enum elements in the header
31 static const char *const names[] = {
32 "specflux", "centroid", "spread", "skewness", "kurtosis", "slope", "decrease", "rolloff"
33 };
34 return names[(int)t];
35 }
36
28 const char *getAubioNameForPitchType(PitchType t) 37 const char *getAubioNameForPitchType(PitchType t)
29 { 38 {
30 // In the same order as the enum elements in the header 39 // In the same order as the enum elements in the header
31 static const char *const names[] = { 40 static const char *const names[] = {
32 "yin", "mcomb", "schmitt", "fcomb", "yinfft" 41 "yin", "mcomb", "schmitt", "fcomb", "yinfft"