annotate plugins/Types.cpp @ 30:7fd8f7a0b088

Start overhaul for (current git, presumably later v0.4.0) aubio API
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 09 Jul 2012 15:10:35 +0100
parents
children a2301c902711
rev   line source
cannam@30 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
cannam@30 2
cannam@30 3 /*
cannam@30 4 Vamp feature extraction plugins using Paul Brossier's Aubio library.
cannam@30 5
cannam@30 6 Centre for Digital Music, Queen Mary, University of London.
cannam@30 7 This file copyright 2012 Queen Mary, University of London.
cannam@30 8
cannam@30 9 This program is free software; you can redistribute it and/or
cannam@30 10 modify it under the terms of the GNU General Public License as
cannam@30 11 published by the Free Software Foundation; either version 2 of the
cannam@30 12 License, or (at your option) any later version. See the file
cannam@30 13 COPYING included with this distribution for more information.
cannam@30 14
cannam@30 15 */
cannam@30 16
cannam@30 17 #include "Types.h"
cannam@30 18
cannam@30 19 const char *getAubioNameForOnsetType(OnsetType t)
cannam@30 20 {
cannam@30 21 switch (t) {
cannam@30 22 case OnsetEnergy: return "energy";
cannam@30 23 case OnsetSpecDiff: return "specdiff";
cannam@30 24 case OnsetHFC: return "hfc";
cannam@30 25 case OnsetComplex: return "complex";
cannam@30 26 case OnsetPhase: return "phase";
cannam@30 27 case OnsetMKL: return "mkl";
cannam@30 28 case OnsetKL: return "kl";
cannam@30 29 case OnsetSpecFlux: return "specflux";
cannam@30 30 }
cannam@30 31 }
cannam@30 32
cannam@30 33 const char *getAubioNameForPitchType(PitchType t)
cannam@30 34 {
cannam@30 35 switch (t) {
cannam@30 36 case PitchMComb: return "mcomb";
cannam@30 37 case PitchYinFFT: return "yinfft";
cannam@30 38 case PitchYin: return "yin";
cannam@30 39 case PitchSchmitt: return "schmitt";
cannam@30 40 case PitchFComb: return "fcomb";
cannam@30 41 }
cannam@30 42 }
cannam@30 43