You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to run the RenderSpectrogramDemo but I got an error. It seems that a
method is missing from the class Spectrogram.
See below for details.
Exception in thread "main" java.lang.NoSuchMethodError:
com.musicg.wave.extension.Spectrogram.getSpectrogramData()[[D
at com.musicg.graphic.GraphicRender.renderSpectrogram(GraphicRender.java:138)
at RenderSpectrogramDemo.main(RenderSpectrogramDemo.java:39)
Original issue reported on code.google.com by [email protected] on 19 Sep 2012 at 3:27
The text was updated successfully, but these errors were encountered:
I ran into a similar issue. The way I figured out how to move around it - at
least until the issues is addressed - was to circumvent that particular call
and do what the constructor was intended to do.
After you create your Spectrogram instance, you need to create a double array,
as that is what the GraphicRender is expecting when you are passing data using
renderSpecrogramData.
For example:
Spectrogram spectrogram1 = new Spectrogram(audio1);
double [][] spec1Data = spectrogram1.getAbsoluteSpectrogramData();
GraphicRender render = new GraphicRender();
render.renderSpectrogramData(spec1Data, "spec1.jpg");
That got me the spectrogram that I was looking for.
Original issue reported on code.google.com by
[email protected]
on 19 Sep 2012 at 3:27The text was updated successfully, but these errors were encountered: