comparison silvet/silvet.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 4b7e9d3a2528
children
comparison
equal deleted inserted replaced
47:1c1bad814d02 48:4d450d496793
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 1
3 #include "PiperExport.h" 2 #include "PiperExport.h"
3
4 #include "Silvet.h" 4 #include "Silvet.h"
5 5
6 static std::string soname("silvet"); 6 using piper_vamp_js::PiperAdapter;
7 using piper_vamp_js::PiperPluginLibrary;
7 8
8 static piper_vamp_js::PiperAdapter<Silvet> silvetAdapter(soname); 9 static std::string libname("silvet");
9 static piper_vamp_js::PiperPluginLibrary library({ &silvetAdapter }); 10
11 static PiperAdapter<Silvet>
12 silvetAdapter(
13 libname,
14 { "Notes" },
15 {
16 { "notes",
17 { "http://purl.org/ontology/af/Note" }
18 },
19 { "onsets",
20 { "http://purl.org/ontology/af/Onset" }
21 },
22 { "onoffsets",
23 { "" }
24 },
25 { "timefreq",
26 { "http://purl.org/ontology/af/Spectrogram" }
27 },
28 { "pitchactivation",
29 { "http://purl.org/ontology/af/Spectrogram" }
30 },
31 { "chroma",
32 { "http://purl.org/ontology/af/Chromagram" }
33 },
34 { "templates",
35 { "" }
36 }
37 }
38 );
39
40 static PiperPluginLibrary library({
41 &silvetAdapter
42 });
10 43
11 PIPER_EXPORT_LIBRARY(library); 44 PIPER_EXPORT_LIBRARY(library);
12 45