Changeset 8aa0ef87


Ignore:
Timestamp:
Dec 31, 2008 6:29:04 PM (6 years ago)
Author:
yomguy <>
Branches:
master, crem, crem2, crem3, dev, dev2, diadems, dj1.6, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, prob, production, release/1.4.4, sabiod, search, security, server, social, storage, telecaster, test, video
Children:
8886589
Parents:
5f9d77c
git-author:
yomguy <> (31/12/2008 18:29:04)
git-committer:
yomguy <> (31/12/2008 18:29:04)
Message:

add Mean DC shift analyzer, fix duration analysis, cleanup

Location:
telemeta/analysis
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • telemeta/analysis/__init__.py

    r41604ad r8aa0ef87  
    99from telemeta.analysis.max_level import * 
    1010from telemeta.analysis.mean_level import * 
     11from telemeta.analysis.dc import * 
    1112 
    1213 
  • telemeta/analysis/duration.py

    r41604ad r8aa0ef87  
    2929    def render(self, media_item, options=None): 
    3030        self.pre_process(media_item) 
    31         media_time = numpy.round(float(self.frames)/(float(self.samplerate)*float(self.channels)),0) 
     31        media_time = numpy.round(float(self.frames)/float(self.samplerate),0) 
    3232        return datetime.timedelta(0,media_time) 
  • telemeta/analysis/mean_level.py

    r92e0128 r8aa0ef87  
    2929        self.pre_process(media_item) 
    3030        samples = self.get_mono_samples() 
    31         size = numpy.size(samples) 
    3231        return numpy.round(20*numpy.log10(numpy.mean(numpy.sqrt(numpy.square(samples)))),2) 
Note: See TracChangeset for help on using the changeset viewer.