From c2a803fd01a242241a4c49b5c3e7cd2d73306299 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 1 Dec 2013 14:04:15 -0500 Subject: [PATCH] timeside/analyzer/aubio_pitch.py: fill up results id_metadata --- timeside/analyzer/aubio_pitch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/timeside/analyzer/aubio_pitch.py b/timeside/analyzer/aubio_pitch.py index d4a5320..580b994 100644 --- a/timeside/analyzer/aubio_pitch.py +++ b/timeside/analyzer/aubio_pitch.py @@ -81,9 +81,15 @@ class AubioPitch(Analyzer): # parameters : None # TODO check with Piem "default" and "freq" in # setup + pitch.id_metadata.id += '.' + "pitch" + pitch.id_metadata.name += ' ' + "pitch" + pitch.id_metadata.unit = "Hz" pitch.data_object.value = self.pitches self.pipe.results.add(pitch) pitch_confidence = self.new_result(data_mode='value', time_mode='framewise') + pitch_confidence.id_metadata.id += '.' + "pitch_confidence" + pitch_confidence.id_metadata.name += ' ' + "pitch confidence" + pitch_confidence.id_metadata.unit = None pitch_confidence.data_object.value = self.pitch_confidences self.pipe.results.add(pitch_confidence) -- 2.39.5