Mercurial > hg > piper-vamp-js-builds
comparison cepstral-pitchtracker/cepstral-pitchtracker.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 | 916d856b698c |
| 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" |
| 4 | 3 |
| 5 #include "CepstralPitchTracker.h" | 4 #include "CepstralPitchTracker.h" |
| 6 | 5 |
| 7 using piper_vamp_js::PiperAdapter; | 6 using piper_vamp_js::PiperAdapter; |
| 8 using piper_vamp_js::PiperPluginLibrary; | 7 using piper_vamp_js::PiperPluginLibrary; |
| 9 | 8 |
| 10 static std::string soname("cepstral-pitchtracker"); | 9 static std::string libname("cepstral-pitchtracker"); |
| 11 | 10 |
| 12 static PiperAdapter<CepstralPitchTracker> cepstralPitchTrackerAdapter(soname); | 11 static PiperAdapter<CepstralPitchTracker> |
| 12 cepstralPitchTrackerAdapter( | |
| 13 libname, | |
| 14 { "Notes" }, | |
| 15 { | |
| 16 { "f0", | |
| 17 { "http://purl.org/ontology/af/Pitch" } | |
| 18 }, | |
| 19 { "notes", | |
| 20 { "http://purl.org/ontology/af/Note" } | |
| 21 } | |
| 22 } | |
| 23 ); | |
| 13 | 24 |
| 14 static PiperPluginLibrary library({ | 25 static PiperPluginLibrary library({ |
| 15 &cepstralPitchTrackerAdapter | 26 &cepstralPitchTrackerAdapter |
| 16 }); | 27 }); |
| 17 | 28 |
