From efc65d8e5f73fc376361badf0b15a20d3246c02a Mon Sep 17 00:00:00 2001 From: Dmitry Bogdanov Date: Mon, 16 Oct 2023 17:59:02 +0200 Subject: [PATCH] PredominantPitchMelodia: reset algorithm on each compute(). Fixes #1374 --- src/algorithms/tonal/predominantpitchmelodia.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/algorithms/tonal/predominantpitchmelodia.cpp b/src/algorithms/tonal/predominantpitchmelodia.cpp index 085ff30be..323b1835d 100644 --- a/src/algorithms/tonal/predominantpitchmelodia.cpp +++ b/src/algorithms/tonal/predominantpitchmelodia.cpp @@ -229,6 +229,8 @@ void PredominantPitchMelodia::compute() { _pitchContoursMelody->output("pitchConfidence").set(pitchConfidence); _pitchContoursMelody->compute(); + + reset(); } PredominantPitchMelodia::~PredominantPitchMelodia() {