naxingyu / opensmile

A github repo of the openSMILE feature extraction tool.
http://www.audeering.com/research/opensmile
Other
214 stars 79 forks source link

plotchroma.sh #5

Open ArshamSol opened 6 years ago

ArshamSol commented 6 years ago

I run this command sh plotchroma.sh ../../chroma.csv to plot but I received this error : "Starting gnuplot, type 'quit' to exit the gnuplot prompt! "plotmatrix_chroma.gp", line 11: Scan size of matrix is zero"

Could you please help me?

vivek-sethia commented 6 years ago

@javad329 facing the same issue

etomic1 commented 6 years ago

@javad329 , @vivek-sethia , did you solve the problem?

manestay commented 6 years ago

I have this issue as well. It looks like the guide might not be updated for the latest version of openSMILE? I say this because, for example, the guide still refers to a "wav_samples" folder, which hasn't existed in the package for several versions already.

etomic1 commented 6 years ago

@manestay i think problem is in plotmatrix_chroma.gp file. Which OS do you use? i'm using windows 7....and installed bash shell for Win7....Maybe that could be problem?! Maybe Linux will work properly....

etomic1 commented 6 years ago

@manestay i resolved it. in plotmatrix_chroma.gp file, you need to change name of '.tmp.plot.dat' to 'chroma.csv'. But now, what i get is blank chromagram :/

mgarbayona commented 5 years ago

Encountered the same error just now. This is what I have found so far, and it would be great if someone else can verify and continue on.

(1) Apparently plotchroma.sh is calling the Perl script transpose.pl to generate a space-separated version of the input CSV file (chroma.csv in this case) so that the gnuplot function can interpret it correctly. The problem is that transpose.pl is not doing its job. The file it outputs contains nothing. (2) As a simple workaround, I just replaced the delimiter in chroma.csv with spaces, and for now saved it to chroma_space.csv. (3) Since I now have the supposedly output of transpose.pl, I opened plotmatrix_chroma.gp and changed all references to ".tmp.plot.dat" to "chroma_space.csv", as suggested in the script and in this forum. (Although this might not be needed if transpose.pl is working correctly in the first place. I just used a different filename.) (4) I then ran "gnuplot -persist plotmatrix_chroma.gp" on the command line, and now I have what looks like a chromagram of my speech file (I used my own audio file)

gnuplot4chroma_space

Things to do: (1) Fix transpose.pl

shahhaard47 commented 5 years ago

I fixed the error with transpose.pl file. Change the line with the split statement in the while loop like this: originally:

split(/;/);

new:

@_ = split(/;/);