cannam@30: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ cannam@30: cannam@30: /* cannam@30: Vamp feature extraction plugins using Paul Brossier's Aubio library. cannam@30: cannam@30: Centre for Digital Music, Queen Mary, University of London. cannam@30: This file copyright 2012 Queen Mary, University of London. cannam@30: cannam@30: This program is free software; you can redistribute it and/or cannam@30: modify it under the terms of the GNU General Public License as cannam@30: published by the Free Software Foundation; either version 2 of the cannam@30: License, or (at your option) any later version. See the file cannam@30: COPYING included with this distribution for more information. cannam@30: cannam@30: */ cannam@30: cannam@30: #include "Types.h" cannam@30: cannam@30: const char *getAubioNameForOnsetType(OnsetType t) cannam@30: { cannam@30: switch (t) { cannam@30: case OnsetEnergy: return "energy"; cannam@30: case OnsetSpecDiff: return "specdiff"; cannam@30: case OnsetHFC: return "hfc"; cannam@30: case OnsetComplex: return "complex"; cannam@30: case OnsetPhase: return "phase"; cannam@30: case OnsetMKL: return "mkl"; cannam@30: case OnsetKL: return "kl"; cannam@30: case OnsetSpecFlux: return "specflux"; cannam@30: } cannam@30: } cannam@30: cannam@30: const char *getAubioNameForPitchType(PitchType t) cannam@30: { cannam@30: switch (t) { cannam@30: case PitchMComb: return "mcomb"; cannam@30: case PitchYinFFT: return "yinfft"; cannam@30: case PitchYin: return "yin"; cannam@30: case PitchSchmitt: return "schmitt"; cannam@30: case PitchFComb: return "fcomb"; cannam@30: } cannam@30: } cannam@30: