Mercurial > hg > match-vamp
annotate src/libmain.cpp @ 246:aac9ad4064ea subsequence tip
Fix incorrect handling of silent tail in the non-subsequence MATCH phase; some debug output changes
author | Chris Cannam |
---|---|
date | Fri, 24 Jul 2020 14:29:55 +0100 |
parents | 39fe8728e1ca |
children |
rev | line source |
---|---|
Chris@236 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@236 | 2 |
Chris@236 | 3 /* |
Chris@236 | 4 Vamp feature extraction plugin using the MATCH audio alignment |
Chris@236 | 5 algorithm. |
Chris@236 | 6 |
Chris@236 | 7 Centre for Digital Music, Queen Mary, University of London. |
Chris@236 | 8 Copyright (c) 2007-2020 Simon Dixon, Chris Cannam, and Queen Mary |
Chris@236 | 9 University of London, Copyright (c) 2014-2015 Tido GmbH. |
Chris@236 | 10 |
Chris@236 | 11 This program is free software; you can redistribute it and/or |
Chris@236 | 12 modify it under the terms of the GNU General Public License as |
Chris@236 | 13 published by the Free Software Foundation; either version 2 of the |
Chris@236 | 14 License, or (at your option) any later version. See the file |
Chris@236 | 15 COPYING included with this distribution for more information. |
Chris@236 | 16 */ |
Chris@236 | 17 |
Chris@236 | 18 #include "MatchVampPlugin.h" |
Chris@236 | 19 #include "SubsequenceMatchVampPlugin.h" |
Chris@236 | 20 |
Chris@236 | 21 #include <vamp-sdk/PluginAdapter.h> |
Chris@236 | 22 |
Chris@236 | 23 static Vamp::PluginAdapter<MatchVampPlugin> mvpAdapter; |
Chris@236 | 24 static Vamp::PluginAdapter<SubsequenceMatchVampPlugin> smvpAdapter; |
Chris@236 | 25 |
Chris@236 | 26 const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int version, |
Chris@236 | 27 unsigned int index) |
Chris@236 | 28 { |
Chris@236 | 29 if (version < 1) return 0; |
Chris@236 | 30 |
Chris@236 | 31 switch (index) { |
Chris@236 | 32 case 0: return mvpAdapter.getDescriptor(); |
Chris@236 | 33 case 1: return smvpAdapter.getDescriptor(); |
Chris@236 | 34 default: return 0; |
Chris@236 | 35 } |
Chris@236 | 36 } |