Vamp Plugins Forum

Using Vamp Plugins and Hosts => Getting and Using Vamp Plugins => Topic started by: Myrex on May 11, 2010, 18:06:57

Title: simple vamp host
Post by: Myrex on May 11, 2010, 18:06:57
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.
Title: Re: simple vamp host
Post by: cannam on May 12, 2010, 15:02:56

Assuming that the vamp-example-plugins plugin library is properly installed:

Code: [Select]
vamp-simple-host vamp-example-plugins:percussiononsets:onsets file.wav

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
Title: Re: simple vamp host
Post by: Myrex on May 13, 2010, 10:44:22
Can I insert the parameters of a plugin ?
Title: Re: simple vamp host
Post by: cannam on May 13, 2010, 11:18:36
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
Title: Re: simple vamp host
Post by: Myrex on May 15, 2010, 10:24:03
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?