Home | Trees | Indices | Help |
|
---|
|
1 # -*- coding: utf-8 -*- 2 # 3 # Copyright (c) 2013 Paul Brossier <piem@piem.org> 4 5 # This file is part of TimeSide. 6 7 # TimeSide is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 12 # TimeSide is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 17 # You should have received a copy of the GNU General Public License 18 # along with TimeSide. If not, see <http://www.gnu.org/licenses/>. 19 20 # Author: Paul Brossier <piem@piem.org> 21 22 from timeside.core import implements, interfacedoc 23 from timeside.analyzer.core import Analyzer 24 from timeside.api import IAnalyzer 25 import numpy as np 26 27 from preprocessors import downmix_to_mono, frames_adapter30 implements(IAnalyzer) # TODO check if needed with inheritance 31 34 # self.input_blocksize = 2048 35 # self.input_stepsize = self.input_blocksize / 2 36 37 @interfacedoc7140 super(Waveform, self).setup(channels, samplerate, 41 blocksize, totalframes) 42 self.values = [] 43 self.result_blocksize = 1 44 self.result_stepsize = 145 46 @staticmethod 47 @interfacedoc 50 51 @staticmethod 52 @interfacedoc 55 56 @staticmethod 57 @interfacedoc 60 61 # @downmix_to_mono 62 # @frames_adapter 66
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Dec 15 00:09:38 2013 | http://epydoc.sourceforge.net |