Author Topic: simple vamp host  (Read 7338 times)

Myrex

  • Newbie
  • *
  • Posts: 4
    • View Profile
simple vamp host
« 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.

cannam

  • Administrator
  • Sr. Member
  • *****
  • Posts: 273
    • View Profile
Re: simple vamp host
« Reply #1 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

Myrex

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: simple vamp host
« Reply #2 on: May 13, 2010, 10:44:22 »
Can I insert the parameters of a plugin ?

cannam

  • Administrator
  • Sr. Member
  • *****
  • Posts: 273
    • View Profile
Re: simple vamp host
« Reply #3 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

Myrex

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: simple vamp host
« Reply #4 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?