diff 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
line wrap: on
line diff
--- a/silvet/silvet.cpp	Thu Mar 30 16:30:04 2017 +0100
+++ b/silvet/silvet.cpp	Wed Jun 14 13:58:45 2017 +0100
@@ -1,12 +1,45 @@
-/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
 
 #include "PiperExport.h"
+
 #include "Silvet.h"
 
-static std::string soname("silvet");
+using piper_vamp_js::PiperAdapter;
+using piper_vamp_js::PiperPluginLibrary;
 
-static piper_vamp_js::PiperAdapter<Silvet> silvetAdapter(soname);
-static piper_vamp_js::PiperPluginLibrary library({ &silvetAdapter });
+static std::string libname("silvet");
+
+static PiperAdapter<Silvet>
+silvetAdapter(
+    libname,
+    { "Notes" },
+    {
+        { "notes",
+            { "http://purl.org/ontology/af/Note" }
+        },
+        { "onsets",
+            { "http://purl.org/ontology/af/Onset" }
+        },
+        { "onoffsets",
+            { "" }
+        },
+        { "timefreq",
+            { "http://purl.org/ontology/af/Spectrogram" }
+        },
+        { "pitchactivation",
+            { "http://purl.org/ontology/af/Spectrogram" }
+        },
+        { "chroma",
+            { "http://purl.org/ontology/af/Chromagram" }
+        },
+        { "templates",
+            { "" }
+        }
+    }
+    );
+
+static PiperPluginLibrary library({
+    &silvetAdapter
+});
 
 PIPER_EXPORT_LIBRARY(library);