annotate segmentino/Segmentino.h @ 84:55a047986812 tip

Update library URI so as not to be document-local
author Chris Cannam
date Wed, 22 Apr 2020 14:21:57 +0100
parents 3d5f8e4593ef
children
rev   line source
max@1 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
max@1 2
max@1 3 /*
Chris@48 4 Segmentino
max@1 5
Chris@48 6 Code by Massimiliano Zanoni and Matthias Mauch
Chris@48 7 Centre for Digital Music, Queen Mary, University of London
Chris@48 8
Chris@48 9 Copyright 2009-2013 Queen Mary, University of London.
max@1 10
Chris@65 11 This program is free software: you can redistribute it and/or
Chris@65 12 modify it under the terms of the GNU Affero General Public License
Chris@65 13 as published by the Free Software Foundation, either version 3 of
Chris@65 14 the License, or (at your option) any later version. See the file
max@1 15 COPYING included with this distribution for more information.
max@1 16 */
max@1 17
Chris@48 18 #ifndef _SEGMENTINO_PLUGIN_H_
Chris@48 19 #define _SEGMENTINO_PLUGIN_H_
max@1 20
max@1 21 #include <vamp-sdk/Plugin.h>
max@1 22
max@1 23 class BeatTrackerData;
max@1 24
max@1 25 class ChromaData;
max@1 26
Chris@48 27 class Segmentino : public Vamp::Plugin
max@1 28 {
max@1 29 public:
Chris@48 30 Segmentino(float inputSampleRate);
Chris@48 31 virtual ~Segmentino();
max@1 32
max@1 33 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
max@1 34 void reset();
max@1 35
max@1 36 InputDomain getInputDomain() const { return TimeDomain; }
max@1 37
max@1 38 std::string getIdentifier() const;
max@1 39 std::string getName() const;
max@1 40 std::string getDescription() const;
max@1 41 std::string getMaker() const;
max@1 42 int getPluginVersion() const;
max@1 43 std::string getCopyright() const;
max@1 44
max@1 45 ParameterList getParameterDescriptors() const;
max@1 46 float getParameter(std::string) const;
max@1 47 void setParameter(std::string, float);
max@1 48
max@1 49 size_t getPreferredStepSize() const;
max@1 50 size_t getPreferredBlockSize() const;
max@1 51
max@1 52 OutputList getOutputDescriptors() const;
max@1 53
max@1 54 FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp);
max@1 55 FeatureSet getRemainingFeatures();
max@1 56
max@1 57 protected:
max@1 58 BeatTrackerData *m_d;
max@1 59 ChromaData *m_chromadata;
max@1 60 static float m_stepSecs;
Chris@37 61 static int m_chromaFramesizeFactor;
Chris@37 62 static int m_chromaStepsizeFactor;
max@1 63 int m_bpb;
max@1 64 int m_pluginFrameCount;
Chris@16 65 FeatureSet beatTrack();
Chris@16 66 FeatureList chromaFeatures();
Chris@16 67 std::vector<FeatureList> beatQuantiser(FeatureList chromagram, FeatureList beats);
Chris@14 68 FeatureList runSegmenter(FeatureList quantisedChromagram);
max@1 69
max@1 70 mutable int m_beatOutputNumber;
max@1 71 mutable int m_barsOutputNumber;
max@1 72 mutable int m_beatcountsOutputNumber;
max@1 73 mutable int m_beatsdOutputNumber;
max@1 74 mutable int m_logscalespecOutputNumber;
max@1 75 mutable int m_bothchromaOutputNumber;
max@1 76 mutable int m_qchromafwOutputNumber;
max@1 77 mutable int m_qchromaOutputNumber;
max@1 78 mutable int m_segmOutputNumber;
max@1 79
max@1 80 };
max@1 81
max@1 82
max@1 83 #endif