Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError: com.musicg.wave.extension.Spectrogram.getSpectrogramData() #1

Open
GoogleCodeExporter opened this issue Jun 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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 comment by [email protected] on 9 Nov 2012 at 1:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant