Mercurial > hg > nnls-chroma
comparison chromamethods.cpp @ 35:cf8898a0174c matthiasm-plugin
* Split out NNLSChroma plugin into three plugins (chroma, chordino, tuning) with a common base class.
There's still quite a lot of duplication between the getRemainingFeatures functions.
Also add copyright / copying headers, etc.
author | Chris Cannam |
---|---|
date | Fri, 22 Oct 2010 11:30:21 +0100 |
parents | 608b0c8ad3f8 |
children | d6bb9b43ac1c |
comparison
equal
deleted
inserted
replaced
34:8edcf48f4031 | 35:cf8898a0174c |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 NNLS-Chroma / Chordino | |
5 | |
6 Audio feature extraction plugins for chromagram and chord | |
7 estimation. | |
8 | |
9 Centre for Digital Music, Queen Mary University of London. | |
10 This file copyright 2008-2010 Matthias Mauch and QMUL. | |
11 | |
12 This program is free software; you can redistribute it and/or | |
13 modify it under the terms of the GNU General Public License as | |
14 published by the Free Software Foundation; either version 2 of the | |
15 License, or (at your option) any later version. See the file | |
16 COPYING included with this distribution for more information. | |
17 */ | |
18 | |
1 #include "chromamethods.h" | 19 #include "chromamethods.h" |
2 | 20 |
3 #include <cmath> | 21 #include <cmath> |
4 #include <list> | 22 #include <list> |
5 #include <iostream> | 23 #include <iostream> |
194 } | 212 } |
195 } | 213 } |
196 } | 214 } |
197 | 215 |
198 | 216 |
199 } | |
200 | |
201 string get_env_var( std::string const & key ) { | |
202 char * val; | |
203 val = getenv( key.c_str() ); | |
204 string retval; | |
205 if (val != NULL) { | |
206 retval = val; | |
207 } | |
208 return retval; | |
209 } | 217 } |
210 | 218 |
211 static | 219 static |
212 std::vector<std::string> | 220 std::vector<std::string> |
213 getPluginPath() | 221 getPluginPath() |