X-Git-Url: https://git.aubio.org/?p=vamp-aubio-plugins.git;a=blobdiff_plain;f=plugins%2FTypes.cpp;h=1af71f97796db18a0fc6c414cd766424059a8428;hp=c5d9a64f4b7094fcd75fd277d87cae4c4ac659c4;hb=044ac79b634e0826dbb3e6463c677d4a8a6bb3f6;hpb=7d77847016f42eea4fd2186d897fc08fbab9db80;ds=sidebyside diff --git a/plugins/Types.cpp b/plugins/Types.cpp index c5d9a64..1af71f9 100644 --- a/plugins/Types.cpp +++ b/plugins/Types.cpp @@ -6,11 +6,20 @@ Centre for Digital Music, Queen Mary, University of London. This file copyright 2012 Queen Mary, University of London. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. See the file - COPYING included with this distribution for more information. + This file is part of vamp-aubio-plugins. + + vamp-aubio is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + vamp-aubio is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with aubio. If not, see . */ @@ -25,6 +34,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