annotate nnls-chroma/nnls-chroma.cpp @ 48:4d450d496793
Update .cpp main files with metadata from generator
author |
Chris Cannam <c.cannam@qmul.ac.uk> |
date |
Wed, 14 Jun 2017 13:58:45 +0100 |
parents |
e9246f5afbf3 |
children |
|
rev |
line source |
c@35
|
1
|
c@35
|
2 #include "PiperExport.h"
|
c@35
|
3
|
c@35
|
4 #include "NNLSChroma.h"
|
c@35
|
5 #include "Chordino.h"
|
c@35
|
6 #include "Tuning.h"
|
c@35
|
7
|
c@48
|
8 using piper_vamp_js::PiperAdapter;
|
c@48
|
9 using piper_vamp_js::PiperPluginLibrary;
|
c@35
|
10
|
c@48
|
11 static std::string libname("nnls-chroma");
|
c@35
|
12
|
c@48
|
13 static PiperAdapter<NNLSChroma>
|
c@48
|
14 nnlsChromaAdapter(
|
c@48
|
15 libname,
|
c@48
|
16 { "Visualisation" },
|
c@48
|
17 {
|
c@48
|
18 { "logfreqspec",
|
c@48
|
19 { "http://purl.org/ontology/af/Spectrogram" }
|
c@48
|
20 },
|
c@48
|
21 { "tunedlogfreqspec",
|
c@48
|
22 { "http://purl.org/ontology/af/Spectrogram" }
|
c@48
|
23 },
|
c@48
|
24 { "semitonespectrum",
|
c@48
|
25 { "http://purl.org/ontology/af/Spectrogram" }
|
c@48
|
26 },
|
c@48
|
27 { "chroma",
|
c@48
|
28 { "http://purl.org/ontology/af/Chromagram" }
|
c@48
|
29 },
|
c@48
|
30 { "basschroma",
|
c@48
|
31 { "http://purl.org/ontology/af/Chromagram" }
|
c@48
|
32 },
|
c@48
|
33 { "bothchroma",
|
c@48
|
34 { "http://purl.org/ontology/af/Chromagram" }
|
c@48
|
35 }
|
c@48
|
36 }
|
c@48
|
37 );
|
c@48
|
38
|
c@48
|
39 static PiperAdapter<Chordino>
|
c@48
|
40 chordinoAdapter(
|
c@48
|
41 libname,
|
c@48
|
42 { "Notes" },
|
c@48
|
43 {
|
c@48
|
44 { "simplechord",
|
c@48
|
45 { "http://purl.org/ontology/af/ChordSegment" }
|
c@48
|
46 },
|
c@48
|
47 { "chordnotes",
|
c@48
|
48 { "" }
|
c@48
|
49 },
|
c@48
|
50 { "harmonicchange",
|
c@48
|
51 { "http://purl.org/ontology/af/TonalChangeDetectionFunction" }
|
c@48
|
52 },
|
c@48
|
53 { "loglikelihood",
|
c@48
|
54 { "" }
|
c@48
|
55 }
|
c@48
|
56 }
|
c@48
|
57 );
|
c@48
|
58
|
c@48
|
59 static PiperAdapter<Tuning>
|
c@48
|
60 tuningAdapter(
|
c@48
|
61 libname,
|
c@48
|
62 { "Key and Tonality" },
|
c@48
|
63 {
|
c@48
|
64 { "tuning",
|
c@48
|
65 { "http://purl.org/ontology/af/MusicSegment" }
|
c@48
|
66 },
|
c@48
|
67 { "localtuning",
|
c@48
|
68 { "" }
|
c@48
|
69 }
|
c@48
|
70 }
|
c@48
|
71 );
|
c@48
|
72
|
c@48
|
73 static PiperPluginLibrary library({
|
c@48
|
74 &nnlsChromaAdapter,
|
c@48
|
75 &chordinoAdapter,
|
c@48
|
76 &tuningAdapter
|
c@35
|
77 });
|
c@35
|
78
|
c@35
|
79 PIPER_EXPORT_LIBRARY(library);
|
c@35
|
80
|