mathieu@0: /* mathieu@2: Calcium Signal Analyser Vamp Plugin mathieu@0: mathieu@2: Transient detection and characterisation for calcium signals. mathieu@2: mathieu@2: Centre for Digital Music, Queen Mary University of London. mathieu@2: This file copyright 2010-2011 Mathieu Barthet and QMUL. mathieu@2: mathieu@2: Based on the QM Vamp note onset detector plugin by Christian mathieu@2: Landone, Chris Duxbury, and Juan Pablo Bello. mathieu@2: mathieu@2: This program is free software; you can redistribute it and/or mathieu@2: modify it under the terms of the GNU General Public License as mathieu@2: published by the Free Software Foundation; either version 2 of the mathieu@2: License, or (at your option) any later version. See the file mathieu@2: COPYING included with this distribution for more information. mathieu@2: mathieu@2: Version: 2 mathieu@2: */ mathieu@0: mathieu@0: #include mathieu@0: #include mathieu@0: mathieu@0: #include "CalciumSignalAnalyser.h" mathieu@0: mathieu@0: // Declare one static adapter here for each plugin class in this library. mathieu@0: mathieu@0: static Vamp::PluginAdapter CalciumSignalAnalyserAdapter; mathieu@0: mathieu@0: // This is the entry-point for the library, and the only function that mathieu@0: // needs to be publicly exported. mathieu@0: mathieu@0: const VampPluginDescriptor * mathieu@0: vampGetPluginDescriptor(unsigned int version, unsigned int index) mathieu@0: { mathieu@0: if (version < 1) return 0; mathieu@0: mathieu@0: // Return a different plugin adaptor's descriptor for each index, mathieu@0: // and return 0 for the first index after you run out of plugins. mathieu@0: // (That's how the host finds out how many plugins are in this mathieu@0: // library.) mathieu@0: mathieu@0: switch (index) { mathieu@0: case 0: return CalciumSignalAnalyserAdapter.getDescriptor(); mathieu@0: default: return 0; mathieu@0: } mathieu@0: } mathieu@0: mathieu@0: