]> git.parisson.com Git - timeside.git/commit
Refactoring of AnalyzerResult in order to address issue #13
authorThomas Fillon <thomas@parisson.com>
Fri, 5 Jul 2013 22:43:58 +0000 (00:43 +0200)
committerThomas Fillon <thomas@parisson.com>
Mon, 19 Aug 2013 13:23:29 +0000 (15:23 +0200)
commit29b7b2f26c95ef957bd0c65daca51d0c5caa0681
tree1e122c87f07de5b68d41f0661d30ea292aa5c0bf
parenta07786c6db09922afe54305845d0c132b2825d4b
Refactoring of AnalyzerResult in order to address issue #13

Add AnalyzerAttributes to handle the metadata in AnalyzerResult and store the Analyzer parameters
Attributes include :
- [x] sampleRate, blockSize, stepSize
- [ ] version of the analyzer (or Timeside release ?)
- [ ] audio source file name
- [x] analysis parameters
- [ ] precision of the results data (float, long, ...)
- [ ] stereo / mono / left / right channel management during analysis ?

AnalyzerResult now include a @property field "properties" containing a dictionnary of the following stats about the results data :
- mean
- median,
- std
- min
- max

Also change the result value return by AubioTemporal because mean and median are now include in "properties"
12 files changed:
tests/test_AnalyzerResult.py
tests/test_analyzer_dc.py
tests/test_analyzer_level.py
timeside/analyzer/aubio_melenergy.py
timeside/analyzer/aubio_mfcc.py
timeside/analyzer/aubio_pitch.py
timeside/analyzer/aubio_specdesc.py
timeside/analyzer/aubio_temporal.py
timeside/analyzer/core.py
timeside/analyzer/dc.py
timeside/analyzer/level.py
timeside/analyzer/yaafe.py