|
pyACA: Documentation 0.3.1
Source Code for Audio Content Analysis
|
computePitch More...
Functions | |
| computePitch (cPitchTrackName, x, f_s, afWindow=None, iBlockLength=4096, iHopLength=2048) | |
| computes the fundamental frequency of (monophonic) audio supported pitch trackers are: 'SpectralAcf', 'SpectralHps', 'TimeAcf', 'TimeAmdf', 'TimeAuditory', 'TimeZeroCrossings', | |
| isSpectral (cName) | |
| helper functions | |
| isTemporal (cName) | |
| computePitchCl (cPath, cPitchTrackName, bPlotOutput=False) | |
| main | |
Variables | |
| parser = argparse.ArgumentParser(description='Compute key of wav file') | |
| metavar | |
| required | |
| help | |
| args = parser.parse_args() | |
| cPath = args.infile | |
| cPitchTrackName = args.featurename | |
| bPlotOutput = args.plotoutput | |
computePitch
computes the fundamental frequency of the (monophonic) audio supported pitch trackers are: 'SpectralAcf', 'SpectralHps', 'TimeAcf', 'TimeAmdf', 'TimeAuditory', 'TimeZeroCrossings', Args:
x: array with floating point audio data f_s: sample rate afWindow: FFT window of length iBlockLength (default: hann) iBlockLength: internal block length (default: 4096 samples) iHopLength: internal hop length (default: 2048 samples)
Returns: f frequency t time stamp for the frequency value
| computePitch | ( | cPitchTrackName, | |
| x, | |||
| f_s, | |||
| afWindow = None, | |||
| iBlockLength = 4096, | |||
| iHopLength = 2048 ) |
computes the fundamental frequency of (monophonic) audio supported pitch trackers are: 'SpectralAcf', 'SpectralHps', 'TimeAcf', 'TimeAmdf', 'TimeAuditory', 'TimeZeroCrossings',
| cPitchTrackName | feature to compute, e.g. 'SpectralHps' |
| 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) |
Definition at line 53 of file computePitch.py.

| computePitchCl | ( | cPath, | |
| cPitchTrackName, | |||
| bPlotOutput = False ) |
main
Definition at line 100 of file computePitch.py.
| isSpectral | ( | cName | ) |
helper functions
Definition at line 82 of file computePitch.py.

| isTemporal | ( | cName | ) |
Definition at line 90 of file computePitch.py.

| args = parser.parse_args() |
Definition at line 129 of file computePitch.py.
| bool bPlotOutput = args.plotoutput |
Definition at line 132 of file computePitch.py.
| str cPath = args.infile |
Definition at line 130 of file computePitch.py.
| str cPitchTrackName = args.featurename |
Definition at line 131 of file computePitch.py.
| help |
Definition at line 122 of file computePitch.py.
| metavar |
Definition at line 121 of file computePitch.py.
| parser = argparse.ArgumentParser(description='Compute key of wav file') |
Definition at line 120 of file computePitch.py.
| required |
Definition at line 121 of file computePitch.py.