annotate qm-vamp-plugins.cpp @ 107:f272e46f5615

Fix dumb typo
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 30 Sep 2016 19:20:23 +0100
parents 1ab9634703ca
children a734a7e976fa
rev   line source
c@106 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@106 2
c@106 3 /*
c@106 4 VamPipe
c@106 5
c@106 6 Centre for Digital Music, Queen Mary, University of London.
c@106 7 Copyright 2015-2016 QMUL.
c@106 8
c@106 9 Permission is hereby granted, free of charge, to any person
c@106 10 obtaining a copy of this software and associated documentation
c@106 11 files (the "Software"), to deal in the Software without
c@106 12 restriction, including without limitation the rights to use, copy,
c@106 13 modify, merge, publish, distribute, sublicense, and/or sell copies
c@106 14 of the Software, and to permit persons to whom the Software is
c@106 15 furnished to do so, subject to the following conditions:
c@106 16
c@106 17 The above copyright notice and this permission notice shall be
c@106 18 included in all copies or substantial portions of the Software.
c@106 19
c@106 20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
c@106 21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c@106 22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
c@106 23 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
c@106 24 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
c@106 25 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
c@106 26 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
c@106 27
c@106 28 Except as contained in this notice, the names of the Centre for
c@106 29 Digital Music; Queen Mary, University of London; and Chris Cannam
c@106 30 shall not be used in advertising or otherwise to promote the sale,
c@106 31 use or other dealings in this Software without prior written
c@106 32 authorization.
c@106 33 */
c@106 34
c@106 35 #include "VamPipeAdapter.h"
c@106 36 #include "VamPipePluginLibrary.h"
c@106 37
c@106 38 #include "plugins/BeatTrack.h"
c@106 39 #include "plugins/OnsetDetect.h"
c@106 40 #include "plugins/ChromagramPlugin.h"
c@106 41 #include "plugins/ConstantQSpectrogram.h"
c@106 42 #include "plugins/TonalChangeDetect.h"
c@106 43 #include "plugins/KeyDetect.h"
c@106 44 #include "plugins/MFCCPlugin.h"
c@106 45 #include "plugins/SegmenterPlugin.h"
c@106 46 #include "plugins/SimilarityPlugin.h"
c@106 47 #include "plugins/BarBeatTrack.h"
c@106 48 //!!!#include "plugins/AdaptiveSpectrogram.h"
c@106 49 #include "plugins/DWT.h"
c@106 50 #include "plugins/Transcription.h"
c@106 51
c@106 52 using vampipe::VamPipeAdapter;
c@106 53 using vampipe::VamPipePluginLibrary;
c@106 54
c@106 55 static std::string soname("qm-vamp-plugins");
c@106 56
c@106 57 static VamPipeAdapter<BeatTracker> beatTrackerAdapter(soname);
c@106 58 static VamPipeAdapter<OnsetDetector> onsetDetectorAdapter(soname);
c@106 59 static VamPipeAdapter<ChromagramPlugin> chromagramPluginAdapter(soname);
c@106 60 static VamPipeAdapter<ConstantQSpectrogram> constantQAdapter(soname);
c@106 61 static VamPipeAdapter<TonalChangeDetect> tonalChangeDetectorAdapter(soname);
c@106 62 static VamPipeAdapter<KeyDetector> keyDetectorAdapter(soname);
c@106 63 static VamPipeAdapter<MFCCPlugin> mfccPluginAdapter(soname);
c@106 64 static VamPipeAdapter<SegmenterPlugin> segmenterPluginAdapter(soname);
c@106 65 static VamPipeAdapter<SimilarityPlugin> similarityPluginAdapter(soname);
c@106 66 static VamPipeAdapter<BarBeatTracker> barBeatTrackPluginAdapter(soname);
c@106 67 //!!!static VamPipeAdapter<AdaptiveSpectrogram> adaptiveSpectrogramAdapter(soname);
c@106 68 static VamPipeAdapter<DWT> dwtAdapter(soname);
c@106 69 static VamPipeAdapter<Transcription> transcriptionAdapter(soname);
c@106 70
c@106 71 static VamPipePluginLibrary library({
c@106 72 &beatTrackerAdapter,
c@106 73 &onsetDetectorAdapter,
c@106 74 &chromagramPluginAdapter,
c@106 75 &constantQAdapter,
c@106 76 &tonalChangeDetectorAdapter,
c@106 77 &keyDetectorAdapter,
c@106 78 &mfccPluginAdapter,
c@106 79 &segmenterPluginAdapter,
c@106 80 &similarityPluginAdapter,
c@106 81 &barBeatTrackPluginAdapter,
c@106 82 //!!! &adaptiveSpectrogramAdapter,
c@106 83 &dwtAdapter,
c@106 84 &transcriptionAdapter
c@106 85 });
c@106 86
c@106 87 extern "C" {
c@106 88
c@106 89 const char *vampipeRequestJson(const char *request) {
c@106 90 return library.requestJson(request);
c@106 91 }
c@106 92
c@106 93 const char *vampipeProcessRaw(int pluginHandle,
c@106 94 const float *const *inputBuffers,
c@106 95 int sec,
c@106 96 int nsec) {
c@106 97 return library.processRaw(pluginHandle, inputBuffers, sec, nsec);
c@106 98 }
c@106 99
c@106 100 void vampipeFreeJson(const char *json) {
c@106 101 return library.freeJson(json);
c@106 102 }
c@106 103
c@106 104 }
c@106 105