Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - grh

Pages: [1]
1
Hallo!

Actually this would also solve the problem I mentioned in http://vamp-plugins.org/forum/index.php/topic,187.0.html .
Would be really nice !

LG

2
Hallo!

I calculate various features on one audiofile, display them in a nice way and store them in a .sv session file.
When I now change the source audio file, Sonic Visualiser displays the audio data of the new file and the features from the old file.
So my question: is there any way to recalculate all features ?

Or maybe there is an other way to do this? I just don't want to layout all features (and colors etc.) every time I open a new file, because it really takes a lot of time ...

Thanks for any hints,
LG
Georg

3
Plugin Development / Re: Get the length of audio file
« on: November 19, 2010, 17:38:18 »
Ok, that's sad .. then I have to reallocate the big buffer array all the time, because I don't know how big the file will be ...

However, thanks for the information and have a good weekend,
LG
Georg

4
Getting and Using Vamp Plugins / Re: install MATCH plugin
« on: November 19, 2010, 14:45:27 »
Download some plugins for windows from this side:
http://vamp-plugins.org/download.html

Then put the .dll files (and .cat files if present) into the C:\Program Files\Vamp Plugins directory.

Now you should see the plugins in Sonic Visualizer or otherwise some error messages !

LG

5
Plugin Development / Get the length of audio file
« on: November 17, 2010, 08:56:06 »
Hallo!

Is it possible to get the length of the audio file which I want to analyze ?

In one algorithm I want to analyze the whole audio file at once and now I am thinking about a good way to do it:
a) I could set the blocksize to the length of the whole audio file (therefore I would need the length of the file)
b) or process the file in small blocks, save them and call getRemainingFeatures at the end

But also in b) I need the file length, because it would be nice to allocate the big buffer arrays before (and not always resize them each block).

Thanks for any hints how this could be achieved in a nice way,
LG
Georg

PS: I am using python/vampy, but I guess the same problem is valid for C++ plugins ...

6
Getting and Using Vamp Plugins / Re: install MATCH plugin
« on: November 17, 2010, 08:42:05 »
Hallo!

You have to put your plugins into the right directory, so that e.g. Sonic Visualiser can find it.
See http://vamp-plugins.org/download.html#install .
(So for windows this should be C:\Program Files\Vamp Plugins)

LG
Georg

7
Plugin Development / Re: Vampy numpy problem on Ubuntu
« on: October 12, 2010, 14:50:29 »
Hallo George!

Thanks for the answer !

One more question: is this the right place to report such problems ?
Or should I better write such things on the mailing list ?

LG
Georg

8
Plugin Development / Re: Vampy numpy problem on Ubuntu
« on: October 03, 2010, 13:17:10 »
OK, I found the bug: it is in vampy-main.cpp.
You parse the Numpy version string with sscanf and this seems to have some problems: I always get "1" instead of "1.3" as a result.

One possible fix is to use C++ istringstream to parse the data:
Code: [Select]
--- 41,43 ----
  #include "PyExtensionManager.h"
! #include <sstream>
 
***************
*** 116,119 ****
 
!     string ver;
!     std::istringstream verStream;
      float numpyVersion;
***************
*** 148,155 ****
  ver = ver.substr(0,ver.rfind("."));
- if(EOF == sscanf(ver.c_str(), "%f", &numpyVersion))
- {
- cerr << "Could not parse Numpy version information." << endl;
- goto numpyFailure;
- }
 
  cerr << "Numpy runtime version: " << numpyVersion << endl;
--- 149,154 ----
  ver = ver.substr(0,ver.rfind("."));
 
+     // parse version string to float
+     verStream.str(ver);
+     verStream >> numpyVersion;
       cerr << "Numpy runtime version: " << numpyVersion << endl;

Now everything works like expected - maybe you can include this fix (or a similar method) in a future version !

9
Plugin Development / Vampy numpy problem on Ubuntu
« on: October 02, 2010, 09:40:03 »
Hallo!

First thanks for Vampy - it looks really nice and I am looking forward to try some algorithms and visualise it with SonicVisualiser ;).
However, I have a problem with the numpy interface (vf_ARRAY) on Ubuntu 10.04, Python 2.6.5 and numpy 1.3.0.

I installed the latest binaries of SonicVisualiser, Vampy - but all Vampy plugins which use the vf_ARRAY interface are not working, the others work.
At startup of the SonicVisualiser I get the following output:
Code: [Select]
    Numpy build information: ABI level: 16777225 Numpy version: 1.1
    Numpy runtime version: 1
    Incompatible Numpy version found: 1
    Please make sure you have Numpy 1.1 or greater installed.
    Vampy: Numpy support disabled.

OK, so I compiled everything myself (Vamp SDK and Vampy, using the latest source from your webpage), still the same output.
Then I set the compiler flag NUMPY_SHORTVERSION=1.3, but again:
Code: [Select]
    Numpy build information: ABI level: 16777225 Numpy version: 1.3
    Numpy runtime version: 1
    Incompatible Numpy version found: 1
    Please make sure you have Numpy 1.3 or greater installed.
    Vampy: Numpy support disabled.

Do you have any clues what I could try to get this working ?

Thanks for any hints,
LG
Georg

Pages: [1]