Open atruskie opened 6 years ago
My suggestion is that we deprecate Create4Sonograms and put all functionality we want inot Audio2Csv. I last worked on Audio2Csv in 2017 and looks to be OK now. The method Audio2Sonogram.TESTMETHOD_DrawFourSpectrograms() still produces expected output.
Your message is a little unclear.
audio2csv is a generic analysis runner - we shouldn't put specific analysis code in it.
If you meant generating spectrograms in the Towsey.Acoustic
index generation analysis, then no again. Apart from that analysis doing too much already (and thus being overly complex), the arity of the output doesn't match; for indices, we get one file of indices per recording, for Create4Sonograms outputs an image for every segment.
The correct course of action is to reimplement it as an IAnalyzer
, which I've already started doing in 0fc8400.
You may have a point on removing the entry point for Create2Sonograms but then again, it provides a nice amount of discoverability and simplicity.
I had assumed that AnalysisPrograms would retain one activity (audio2sonogram) which produces one or more sonogram images given an input recording of suitable length. The "test" method I wrote last year, TESTMETHOD_DrawFourSpectrograms(), still works and still produces an image that combines several sonograms of a one-minute recording. However we get there, the functionality is worth keeping. I will cease working on this until it is clearer how to proceed.
Yes, I'd agree with you stopping work on this. This issue wasn't assigned, and I've previously done work for it.
Nevertheless there is some useful functionality that I owuld not like to lose and is appropriate for exploring a sonogam. In general, it seems to me that you need to set up the outer structure for some functionality before I actually code the function. Perhaps we can sort that out tomorrow. I think I should be able to work on Issue #186 because in the first instance it just involves finding the source of the problem.
Note: partial work done in https://github.com/QutEcoacoustics/audio-analysis/pull/227/commits/e557cf1548c8c198f02ae14691bf85415a9ab85d
Expected behaviour
The UX of
Create4Sonograms
class (TheDrawSpectrograms
command) should be on par with our other commands.Actual behaviour
A number of sub-par problems:
Create4Sonograms
implmentIAnalyzer2
Audio2Sonogram
- they both draw 4 spectrograms!Steps to reproduce the behaviour
C:\Temp> AnalysisPrograms.exe drawspectrograms .\min2.wav "C:\Work\Github\audio-analysis\src\AnalysisConfigFiles\Towsey.Sonogram.yml" --output spectrogram.png
Towsey.Sonogram.yml
Any other details
Deficiencies brought to our attention by Mangalam (JCU)