Skip to content

Commit

Permalink
PredominantPitchMelodia: reset algorithm on each compute(). Fixes #1374
Browse files Browse the repository at this point in the history
  • Loading branch information
dbogdanov committed Oct 16, 2023
1 parent 4c48bb1 commit efc65d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/algorithms/tonal/predominantpitchmelodia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ void PredominantPitchMelodia::compute() {
_pitchContoursMelody->output("pitchConfidence").set(pitchConfidence);

_pitchContoursMelody->compute();

reset();
}

PredominantPitchMelodia::~PredominantPitchMelodia() {
Expand Down

0 comments on commit efc65d8

Please sign in to comment.