annotate plugins.cpp @ 14:c11367df624d
* Renamed NoveltyCurve.* and Spectrogram.* to $(Name)Processor.*
* Aligned novelty curve with audio - when performing FIRFilter::process(params), take inputLength after group delay.
* Removed trail of Spectrogram.
* General tidying!
author |
Carl Bussey <c.bussey@se10.qmul.ac.uk> |
date |
Thu, 14 Aug 2014 10:31:49 +0100 |
parents |
31d2a7e07786 |
children |
4cf2d163127b |
rev |
line source |
c@0
|
1
|
c@0
|
2 // This is a skeleton file for use in creating your own plugin
|
c@0
|
3 // libraries. Replace MyPlugin and myPlugin throughout with the name
|
c@0
|
4 // of your first plugin class, and fill in the gaps as appropriate.
|
c@0
|
5
|
c@0
|
6
|
c@0
|
7 #include <vamp/vamp.h>
|
c@0
|
8 #include <vamp-sdk/PluginAdapter.h>
|
c@0
|
9
|
c@14
|
10 #include "TempogramPlugin.h"
|
c@0
|
11
|
c@0
|
12
|
c@0
|
13 // Declare one static adapter here for each plugin class in this library.
|
c@0
|
14
|
c@14
|
15 static Vamp::PluginAdapter<TempogramPlugin> myPluginAdapter;
|
c@0
|
16
|
c@0
|
17
|
c@0
|
18 // This is the entry-point for the library, and the only function that
|
c@0
|
19 // needs to be publicly exported.
|
c@0
|
20
|
c@0
|
21 const VampPluginDescriptor *
|
c@0
|
22 vampGetPluginDescriptor(unsigned int version, unsigned int index)
|
c@0
|
23 {
|
c@0
|
24 if (version < 1) return 0;
|
c@0
|
25
|
c@0
|
26 // Return a different plugin adaptor's descriptor for each index,
|
c@0
|
27 // and return 0 for the first index after you run out of plugins.
|
c@0
|
28 // (That's how the host finds out how many plugins are in this
|
c@0
|
29 // library.)
|
c@0
|
30
|
c@0
|
31 switch (index) {
|
c@0
|
32 case 0: return myPluginAdapter.getDescriptor();
|
c@0
|
33 default: return 0;
|
c@0
|
34 }
|
c@0
|
35 }
|
c@0
|
36
|
c@0
|
37
|