annotate examples/vamp-example-plugins/vamp-example-plugins.cpp @ 135:c5623bf080bc

Move examples to their own subdirs, tidy up a bit
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 11 Nov 2016 17:02:33 +0000
parents
children dcd4bdf095e7
rev   line source
c@135 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@135 2
c@135 3 /*
c@135 4 Piper
c@135 5
c@135 6 Centre for Digital Music, Queen Mary, University of London.
c@135 7 Copyright 2015-2016 QMUL.
c@135 8
c@135 9 Permission is hereby granted, free of charge, to any person
c@135 10 obtaining a copy of this software and associated documentation
c@135 11 files (the "Software"), to deal in the Software without
c@135 12 restriction, including without limitation the rights to use, copy,
c@135 13 modify, merge, publish, distribute, sublicense, and/or sell copies
c@135 14 of the Software, and to permit persons to whom the Software is
c@135 15 furnished to do so, subject to the following conditions:
c@135 16
c@135 17 The above copyright notice and this permission notice shall be
c@135 18 included in all copies or substantial portions of the Software.
c@135 19
c@135 20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
c@135 21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c@135 22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
c@135 23 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
c@135 24 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
c@135 25 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
c@135 26 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
c@135 27
c@135 28 Except as contained in this notice, the names of the Centre for
c@135 29 Digital Music; Queen Mary, University of London; and Chris Cannam
c@135 30 shall not be used in advertising or otherwise to promote the sale,
c@135 31 use or other dealings in this Software without prior written
c@135 32 authorization.
c@135 33 */
c@135 34
c@135 35 #include "PiperExport.h"
c@135 36
c@135 37 #include "ZeroCrossing.h"
c@135 38 #include "SpectralCentroid.h"
c@135 39 #include "PercussionOnsetDetector.h"
c@135 40 #include "FixedTempoEstimator.h"
c@135 41 #include "AmplitudeFollower.h"
c@135 42 #include "PowerSpectrum.h"
c@135 43
c@135 44 using piper_vamp_js::PiperAdapter;
c@135 45 using piper_vamp_js::PiperPluginLibrary;
c@135 46
c@135 47 static std::string soname("vamp-example-plugins");
c@135 48
c@135 49 static PiperAdapter<ZeroCrossing> zeroCrossingAdapter(soname);
c@135 50 static PiperAdapter<SpectralCentroid> spectralCentroidAdapter(soname);
c@135 51 static PiperAdapter<PercussionOnsetDetector> percussionOnsetAdapter(soname);
c@135 52 static PiperAdapter<FixedTempoEstimator> fixedTempoAdapter(soname);
c@135 53 static PiperAdapter<AmplitudeFollower> amplitudeAdapter(soname);
c@135 54 static PiperAdapter<PowerSpectrum> powerSpectrumAdapter(soname);
c@135 55
c@135 56 static PiperPluginLibrary library({
c@135 57 &zeroCrossingAdapter,
c@135 58 &spectralCentroidAdapter,
c@135 59 &percussionOnsetAdapter,
c@135 60 &fixedTempoAdapter,
c@135 61 &amplitudeAdapter,
c@135 62 &powerSpectrumAdapter
c@135 63 });
c@135 64
c@135 65 PIPER_EXPORT_LIBRARY(library);
c@135 66