Using Vamp Plugins and Hosts > Getting and Using Vamp Plugins
simple vamp host
(1/1)
Myrex:
Can you post a command line example, for the simple vamp host, that describes how to use the plugins in the sdk?
I tried a lot of time, but the host continues to show me the 'Usage'.
Thanks a lot.
cannam:
Assuming that the vamp-example-plugins plugin library is properly installed:
--- Code: ---vamp-simple-host vamp-example-plugins:percussiononsets:onsets file.wav
--- End code ---
should get you a list of estimated onset times for the given WAV file.
(If the plugins are not properly installed, it should give you an error to the effect -- but not just show you the usage instructions.)
Chris
Myrex:
Can I insert the parameters of a plugin ?
cannam:
No, the simple host always runs the plugin with its default parameters.
For more flexible batch processing have a look at Sonic Annotator (http://omras2.org/SonicAnnotator). It has a bit of a learning curve but it can do lots of useful things including configuring plugin parameters, running multiple plugins across multiple audio files, etc, as well as understanding more audio file formats than the simple host does.
Chris
Myrex:
yeah, sonic annotator is great.
I printed the amplitude and the tempo of a single mp3 file.
The perfection will be to have a .cpp file that receives a single mp3 file in input and the input duration to study (sec) and print amplitude and tempo of that file, but i can't do this.
Maybe a simple cut-and-paste from the .cpp plugins in the' examples' of the vamp-sdk?
Navigation
[0] Message Index
Go to full version