pyACA: Documentation 0.3.1
Source Code for Audio Content Analysis
|
Functions | |
computeFeature (cFeatureName, x, f_s, afWindow=None, iBlockLength=4096, iHopLength=2048) | |
computes a feature from the audio data supported features are: 'SpectralCentroid', 'SpectralCrestFactor', 'SpectralDecrease', 'SpectralFlatness', 'SpectralFlux', 'SpectralKurtosis', 'SpectralMfccs', 'SpectralPitchChroma', 'SpectralRolloff', 'SpectralSkewness', 'SpectralSlope', 'SpectralSpread', 'SpectralTonalPowerRatio', 'TimeAcfCoeff', 'TimeMaxAcf', 'TimePeakEnvelope', 'TimeRms', 'TimeStd', 'TimeZeroCrossingRate', | |
isSpectral (cName) | |
helper functions | |
isTemporal (cName) | |
computeFeatureCl (cPath, cFeatureName, bPlotOutput=False) | |
main | |
Variables | |
parser = argparse.ArgumentParser(description='Compute feature from wav file') | |
metavar | |
required | |
help | |
args = parser.parse_args() | |
cPath = args.infile | |
cFeatureName = args.featurename | |
bPlotOutput = args.plotoutput | |
computeFeature | ( | cFeatureName, | |
x, | |||
f_s, | |||
afWindow = None, | |||
iBlockLength = 4096, | |||
iHopLength = 2048 ) |
computes a feature from the audio data supported features are: 'SpectralCentroid', 'SpectralCrestFactor', 'SpectralDecrease', 'SpectralFlatness', 'SpectralFlux', 'SpectralKurtosis', 'SpectralMfccs', 'SpectralPitchChroma', 'SpectralRolloff', 'SpectralSkewness', 'SpectralSlope', 'SpectralSpread', 'SpectralTonalPowerRatio', 'TimeAcfCoeff', 'TimeMaxAcf', 'TimePeakEnvelope', 'TimeRms', 'TimeStd', 'TimeZeroCrossingRate',
cFeatureName | feature to compute, e.g. 'SpectralSkewness' |
x | array with floating point audio data (dimension samples x channels) |
f_s | sample rate of audio data |
afWindow | FFT window of length iBlockLength (default: hann) |
iBlockLength | internal block length (default: 4096 samples) |
iHopLength | internal hop length (default: 2048 samples) |
Definition at line 43 of file computeFeature.py.
computeFeatureCl | ( | cPath, | |
cFeatureName, | |||
bPlotOutput = False ) |
main
Definition at line 90 of file computeFeature.py.
isSpectral | ( | cName | ) |
helper functions
Definition at line 72 of file computeFeature.py.
isTemporal | ( | cName | ) |
Definition at line 80 of file computeFeature.py.
args = parser.parse_args() |
Definition at line 122 of file computeFeature.py.
bool bPlotOutput = args.plotoutput |
Definition at line 125 of file computeFeature.py.
str cFeatureName = args.featurename |
Definition at line 124 of file computeFeature.py.
str cPath = args.infile |
Definition at line 123 of file computeFeature.py.
help |
Definition at line 115 of file computeFeature.py.
metavar |
Definition at line 114 of file computeFeature.py.
parser = argparse.ArgumentParser(description='Compute feature from wav file') |
Definition at line 113 of file computeFeature.py.
required |
Definition at line 114 of file computeFeature.py.