pyACA: Documentation 0.3.1
Source Code for Audio Content Analysis
|
Functions | |
computeSpectrogram (x, f_s, afWindow=None, iBlockLength=4096, iHopLength=2048, bNormalize=True, bMagnitude=True) | |
computes a spectrogram from the audio data | |
computeSpectrogramCl (cPath) | |
main | |
Variables | |
parser = argparse.ArgumentParser(description='Compute key of wav file') | |
metavar | |
required | |
help | |
args = parser.parse_args() | |
cPath = args.infile | |
computeSpectrogram | ( | x, | |
f_s, | |||
afWindow = None, | |||
iBlockLength = 4096, | |||
iHopLength = 2048, | |||
bNormalize = True, | |||
bMagnitude = True ) |
computes a spectrogram from the audio data
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), can be [] empty |
iBlockLength | internal block length (default: 4096 samples) |
iHopLength | internal hop length (default: 2048 samples) |
bNormalize | normalize input audio file before fft computation (default: True) |
bMagnitude | return magnitude instead of complex spectrum (default: True) |
Definition at line 23 of file computeSpectrogram.py.
computeSpectrogramCl | ( | cPath | ) |
main
Definition at line 67 of file computeSpectrogram.py.
args = parser.parse_args() |
Definition at line 92 of file computeSpectrogram.py.
str cPath = args.infile |
Definition at line 93 of file computeSpectrogram.py.
help |
Definition at line 89 of file computeSpectrogram.py.
metavar |
Definition at line 88 of file computeSpectrogram.py.
parser = argparse.ArgumentParser(description='Compute key of wav file') |
Definition at line 87 of file computeSpectrogram.py.
required |
Definition at line 88 of file computeSpectrogram.py.