Small bug fix in F0ANalysis module
This commit is contained in:
@@ -36,12 +36,13 @@ class F0Analysis(Analysis):
|
||||
self.analysis_group = analysis_group
|
||||
frames = self.AnalysedAudioFile.read_grain()
|
||||
self.logger.info("Creating F0 analysis for {0}".format(self.AnalysedAudioFile.name))
|
||||
self.create_analysis(frames, self.AnalysedAudioFile.samplerate)
|
||||
if config:
|
||||
self.threshold = config.f0["threshold"]
|
||||
else:
|
||||
self.threshold = None
|
||||
|
||||
self.create_analysis(frames, self.AnalysedAudioFile.samplerate)
|
||||
|
||||
def get_analysis_grains(self, start, end):
|
||||
"""
|
||||
Retrieve analysis frames for period specified in start and end times.
|
||||
|
||||
Reference in New Issue
Block a user