mathieu@0
|
1 /*
|
mathieu@2
|
2 Calcium Signal Analyser Vamp Plugin
|
mathieu@0
|
3
|
mathieu@2
|
4 Transient detection and characterisation for calcium signals.
|
mathieu@2
|
5
|
mathieu@2
|
6 Centre for Digital Music, Queen Mary University of London.
|
mathieu@2
|
7 This file copyright 2010-2011 Mathieu Barthet and QMUL.
|
mathieu@2
|
8
|
mathieu@2
|
9 Based on the QM Vamp note onset detector plugin by Christian
|
mathieu@2
|
10 Landone, Chris Duxbury, and Juan Pablo Bello.
|
mathieu@2
|
11
|
mathieu@2
|
12 This program is free software; you can redistribute it and/or
|
mathieu@2
|
13 modify it under the terms of the GNU General Public License as
|
mathieu@2
|
14 published by the Free Software Foundation; either version 2 of the
|
mathieu@2
|
15 License, or (at your option) any later version. See the file
|
mathieu@2
|
16 COPYING included with this distribution for more information.
|
mathieu@2
|
17
|
mathieu@2
|
18 Version: 2
|
mathieu@2
|
19 */
|
mathieu@0
|
20
|
mathieu@0
|
21 #include <vamp/vamp.h>
|
mathieu@0
|
22 #include <vamp-sdk/PluginAdapter.h>
|
mathieu@0
|
23
|
mathieu@0
|
24 #include "CalciumSignalAnalyser.h"
|
mathieu@0
|
25
|
mathieu@0
|
26 // Declare one static adapter here for each plugin class in this library.
|
mathieu@0
|
27
|
mathieu@0
|
28 static Vamp::PluginAdapter<CalciumSignalAnalyser> CalciumSignalAnalyserAdapter;
|
mathieu@0
|
29
|
mathieu@0
|
30 // This is the entry-point for the library, and the only function that
|
mathieu@0
|
31 // needs to be publicly exported.
|
mathieu@0
|
32
|
mathieu@0
|
33 const VampPluginDescriptor *
|
mathieu@0
|
34 vampGetPluginDescriptor(unsigned int version, unsigned int index)
|
mathieu@0
|
35 {
|
mathieu@0
|
36 if (version < 1) return 0;
|
mathieu@0
|
37
|
mathieu@0
|
38 // Return a different plugin adaptor's descriptor for each index,
|
mathieu@0
|
39 // and return 0 for the first index after you run out of plugins.
|
mathieu@0
|
40 // (That's how the host finds out how many plugins are in this
|
mathieu@0
|
41 // library.)
|
mathieu@0
|
42
|
mathieu@0
|
43 switch (index) {
|
mathieu@0
|
44 case 0: return CalciumSignalAnalyserAdapter.getDescriptor();
|
mathieu@0
|
45 default: return 0;
|
mathieu@0
|
46 }
|
mathieu@0
|
47 }
|
mathieu@0
|
48
|
mathieu@0
|
49
|