annotate plugins/Types.h @ 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 e9eb5753796b
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 #ifndef _ONSET_TYPE_H_
cannam@30 18 #define _ONSET_TYPE_H_
cannam@30 19
cannam@30 20 // Note: the enum values in this header are ordered to match the Vamp
cannam@30 21 // plugin parameter values in earlier versions of this plugin set, to
cannam@30 22 // avoid breaking stored parameter settings that use the parameter's
cannam@30 23 // numerical value. Any additional values must be added after all
cannam@30 24 // existing ones.
cannam@30 25
cannam@30 26 enum OnsetType {
cannam@30 27 OnsetEnergy,
cannam@30 28 OnsetSpecDiff,
cannam@30 29 OnsetHFC,
cannam@30 30 OnsetComplex,
cannam@30 31 OnsetPhase,
cannam@30 32 OnsetKL,
cannam@30 33 OnsetMKL,
cannam@30 34 OnsetSpecFlux // new in 0.4!
cannam@30 35 };
cannam@30 36
cannam@30 37 extern const char *getAubioNameForOnsetType(OnsetType t);
cannam@30 38
cannam@30 39 enum PitchType {
cannam@30 40 PitchYin,
cannam@30 41 PitchMComb,
cannam@30 42 PitchSchmitt,
cannam@30 43 PitchFComb,
cannam@30 44 PitchYinFFT
cannam@30 45 };
cannam@30 46
cannam@30 47 extern const char *getAubioNameForPitchType(PitchType t);
cannam@30 48
cannam@30 49
cannam@30 50 #endif
cannam@30 51
cannam@30 52