Exemplo n.º 1
0
 def get_dataflow(cls,params,samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     if (params['FFTLength']=='0'):
         params['FFTLength']=params['blockSize']
     dataflow_safe_append(df,'FFT',params)
     dataflow_safe_append(df,'Abs',{})
     return df
Exemplo n.º 2
0
 def get_dataflow(cls, params, samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     if (params['FFTLength'] == '0'):
         params['FFTLength'] = params['blockSize']
     dataflow_safe_append(df, 'FFT', params)
     dataflow_safe_append(df, 'Abs', {})
     return df
Exemplo n.º 3
0
 def get_dataflow(cls, params, samplerate):
     nbCoeffs = int(params.get('LSFNbCoeffs'))
     displacement = int(params.get('LSFDisplacement'))
     lpcparams = LPC.filter_params(params)
     lpcparams['LPCNbCoeffs'] = nbCoeffs + 1 - max(displacement, 1)
     df = LPC.get_dataflow(lpcparams, samplerate)
     dataflow_safe_append(df, 'LPC2LSF', params)
     return df
Exemplo n.º 4
0
 def get_dataflow(cls,params, samplerate):
     nbCoeffs = int(params.get('LSFNbCoeffs'))
     displacement = int(params.get('LSFDisplacement'))
     lpcparams = LPC.filter_params(params)
     lpcparams['LPCNbCoeffs'] = nbCoeffs + 1 - max(displacement,1)
     df = LPC.get_dataflow(lpcparams, samplerate)
     dataflow_safe_append(df,'LPC2LSF',params) 
     return df
Exemplo n.º 5
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(MagnitudeSpectrum.filter_params(params), samplerate)
     dataflow_safe_append(df,'Sqr',{})
     dataflow_safe_append(df,'Loudness',params)
     if (params['LMode']=='Relative'):
         dataflow_safe_append(df,'Normalize',{'NNorm':'Sum'})
     elif (params['LMode']=='Total'):
         dataflow_safe_append(df,'Sum',{})
     return df
Exemplo n.º 6
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(
         MagnitudeSpectrum.filter_params(params), samplerate)
     dataflow_safe_append(df, 'Sqr', {})
     dataflow_safe_append(df, 'Loudness', params)
     if (params['LMode'] == 'Relative'):
         dataflow_safe_append(df, 'Normalize', {'NNorm': 'Sum'})
     elif (params['LMode'] == 'Total'):
         dataflow_safe_append(df, 'Sum', {})
     return df
Exemplo n.º 7
0
 def get_dataflow(cls,params,samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df,'Decrease',params)
     return df
Exemplo n.º 8
0
 def get_dataflow(cls,params,samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params),samplerate)
     dataflow_safe_append(df,'RMS',{})
     return df
Exemplo n.º 9
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df, 'Decrease', params)
     return df
Exemplo n.º 10
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df, 'Sqr', {})
     dataflow_safe_append(df, 'SpectralCrestFactorPerBand', params)
     return df
Exemplo n.º 11
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(MagnitudeSpectrum.filter_params(params), samplerate)
     dataflow_safe_append(df,'Sqr',{})
     dataflow_safe_append(df,'OBSI',params)
     return df
Exemplo n.º 12
0
 def get_dataflow(cls,params, samplerate):
     acparams = AutoCorrelation.filter_params(params)
     acparams['ACNbCoeffs'] = str(int(params.get('LPCNbCoeffs')) + 1)
     df = AutoCorrelation.get_dataflow(acparams, samplerate)
     dataflow_safe_append(df,'AC2LPC',params)
     return df
Exemplo n.º 13
0
 def get_dataflow(cls, params, samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     dataflow_safe_append(df, 'AutoCorrelation', params)
     return df
Exemplo n.º 14
0
 def get_dataflow(cls, params, samplerate):
     df = Envelope.get_dataflow(Envelope.filter_params(params), samplerate)
     dataflow_safe_append(df, 'AmplitudeModulation', params)
     return df
Exemplo n.º 15
0
 def get_dataflow(cls,params, samplerate):
     df = DataFlow()
     dataflow_safe_append(df,'AutoCorrelationPeaksIntegrator',params)
     return df
Exemplo n.º 16
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(
         MagnitudeSpectrum.filter_params(params), samplerate)
     dataflow_safe_append(df, 'MelFilterBank', params)
     dataflow_safe_append(df, 'Cepstrum', params)
     return df
Exemplo n.º 17
0
 def get_dataflow(cls, params, samplerate):
     df = Envelope.get_dataflow(Envelope.filter_params(params), samplerate)
     dataflow_safe_append(df, 'ShapeStatistics', params)
     return df
Exemplo n.º 18
0
 def get_dataflow(cls, params, samplerate):
     df = DataFlow()
     dataflow_safe_append(df, 'Cepstrum', params)
     return df
Exemplo n.º 19
0
 def get_dataflow(cls, params, samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     dataflow_safe_append(df, 'FFT', params)
     dataflow_safe_append(df, 'ComplexDomainFlux', params)
     return df
Exemplo n.º 20
0
 def get_dataflow(cls, params, samplerate):
     df = DataFlow()
     dataflow_safe_append(df, 'AutoCorrelationPeaksIntegrator', params)
     return df
Exemplo n.º 21
0
 def get_dataflow(cls,params,samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df,'Sqr',{})
     dataflow_safe_append(df,'SpectralCrestFactorPerBand',params)
     return df
Exemplo n.º 22
0
 def get_dataflow(cls,params,samplerate):
     df = DataFlow()
     dataflow_safe_append(df,'Cepstrum',params)
     return df
Exemplo n.º 23
0
 def get_dataflow(cls,params,samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     dataflow_safe_append(df,'AutoCorrelation',params)
     return df
Exemplo n.º 24
0
 def get_dataflow(cls, params, samplerate):
     df = Envelope.get_dataflow(Envelope.filter_params(params), samplerate)
     dataflow_safe_append(df,'ShapeStatistics',params)
     return df
Exemplo n.º 25
0
 def get_dataflow(cls, params, samplerate):
     lParams = Loudness.filter_params(params)
     lParams['LMode'] = 'Relative'
     df = Loudness.get_dataflow(lParams, samplerate)
     dataflow_safe_append(df, 'LoudnessSpread', {})
     return df
Exemplo n.º 26
0
 def get_dataflow(cls, params, samplerate):
     acparams = AutoCorrelation.filter_params(params)
     acparams['ACNbCoeffs'] = str(int(params.get('LPCNbCoeffs')) + 1)
     df = AutoCorrelation.get_dataflow(acparams, samplerate)
     dataflow_safe_append(df, 'AC2LPC', params)
     return df
Exemplo n.º 27
0
 def get_dataflow(cls,params,samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     dataflow_safe_append(df,'FFT',params)
     dataflow_safe_append(df,'ComplexDomainFlux',params)
     return df
Exemplo n.º 28
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(
         MagnitudeSpectrum.filter_params(params), samplerate)
     dataflow_safe_append(df, 'Sqr', {})
     dataflow_safe_append(df, 'OBSI', params)
     return df
Exemplo n.º 29
0
 def get_dataflow(cls,params,samplerate):
     df = MagnitudeSpectrum.get_dataflow(MagnitudeSpectrum.filter_params(params), samplerate)
     dataflow_safe_append(df,'MelFilterBank',params)
     dataflow_safe_append(df,'Cepstrum',params)
     return df
Exemplo n.º 30
0
 def get_dataflow(cls, params, samplerate):
     df = OBSI.get_dataflow(OBSI.filter_params(params), samplerate)
     dataflow_safe_append(df, 'Difference', params)
     return df
Exemplo n.º 31
0
 def get_dataflow(cls, params, samplerate):
     df = Envelope.get_dataflow(Envelope.filter_params(params), samplerate)
     dataflow_safe_append(df,'AmplitudeModulation',params)
     return df
Exemplo n.º 32
0
 def get_dataflow(cls, params, samplerate):
     df = Frames.get_dataflow(Frames.filter_params(params), samplerate)
     dataflow_safe_append(df, 'RMS', {})
     return df
Exemplo n.º 33
0
 def get_dataflow(cls, params, samplerate):
     lParams = Loudness.filter_params(params)
     lParams['LMode'] = 'Relative'
     df = Loudness.get_dataflow(lParams, samplerate)
     dataflow_safe_append(df,'LoudnessSpread',{})
     return df
Exemplo n.º 34
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df, 'Sqr', {})
     dataflow_safe_append(df, 'Rolloff', params)
     return df
Exemplo n.º 35
0
 def get_dataflow(cls, params, samplerate):
     df = OBSI.get_dataflow(OBSI.filter_params(params), samplerate)
     dataflow_safe_append(df,'Difference',params)
     return df
Exemplo n.º 36
0
 def get_dataflow(cls,params,samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df,'ShapeStatistics',params)
     return df
Exemplo n.º 37
0
 def get_dataflow(cls,params,samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df,'Sqr',{})
     dataflow_safe_append(df,'Rolloff',params)
     return df
Exemplo n.º 38
0
 def get_dataflow(cls, params, samplerate):
     df = MagnitudeSpectrum.get_dataflow(params, samplerate)
     dataflow_safe_append(df, 'ShapeStatistics', params)
     return df