Mercurial > hg > piper-vamp-js-builds
annotate pyin/pyin.cpp @ 56:5e9027b32179 tip master
Fixes for updated subrepos
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 16 May 2018 15:51:14 +0100 |
parents | 4d450d496793 |
children |
rev | line source |
---|---|
c@33 | 1 |
c@33 | 2 #include "PiperExport.h" |
c@33 | 3 |
c@33 | 4 #include "PYinVamp.h" |
c@33 | 5 #include "YinVamp.h" |
c@33 | 6 #include "LocalCandidatePYIN.h" |
c@33 | 7 |
c@48 | 8 using piper_vamp_js::PiperAdapter; |
c@48 | 9 using piper_vamp_js::PiperPluginLibrary; |
c@33 | 10 |
c@48 | 11 static std::string libname("pyin"); |
c@33 | 12 |
c@48 | 13 static PiperAdapter<PYinVamp> |
c@48 | 14 pyinAdapter( |
c@48 | 15 libname, |
c@48 | 16 { "Pitch" }, |
c@48 | 17 { |
c@48 | 18 { "notes", |
c@48 | 19 { "http://purl.org/ontology/af/Note" } |
c@48 | 20 } |
c@48 | 21 } |
c@48 | 22 ); |
c@48 | 23 |
c@48 | 24 static PiperAdapter<YinVamp> |
c@48 | 25 yinAdapter( |
c@48 | 26 libname, |
c@48 | 27 { "Pitch" }, |
c@48 | 28 { |
c@48 | 29 { "f0", |
c@48 | 30 { "http://purl.org/ontology/af/Pitch" } |
c@48 | 31 } |
c@48 | 32 } |
c@48 | 33 ); |
c@48 | 34 |
c@48 | 35 static PiperAdapter<LocalCandidatePYIN> |
c@48 | 36 localCandidatePYinAdapter( |
c@48 | 37 libname, |
c@48 | 38 { "Pitch" } |
c@48 | 39 ); |
c@48 | 40 |
c@48 | 41 static PiperPluginLibrary library({ |
c@48 | 42 &pyinAdapter, |
c@48 | 43 &yinAdapter, |
c@48 | 44 &localCandidatePYinAdapter |
c@33 | 45 }); |
c@33 | 46 |
c@33 | 47 PIPER_EXPORT_LIBRARY(library); |
c@33 | 48 |