From a3673809cfcedd757adf0f662b441a9e2aaf5ee5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 3 Sep 2019 05:01:59 +0200 Subject: Fix -Wsign-compare --- libs/vamp-pyin/LocalCandidatePYIN.cpp | 4 ++-- libs/vamp-pyin/MonoPitchHMM.cpp | 4 ++-- libs/vamp-pyin/YinUtil.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/vamp-pyin') diff --git a/libs/vamp-pyin/LocalCandidatePYIN.cpp b/libs/vamp-pyin/LocalCandidatePYIN.cpp index 35682b1887..e90e819191 100644 --- a/libs/vamp-pyin/LocalCandidatePYIN.cpp +++ b/libs/vamp-pyin/LocalCandidatePYIN.cpp @@ -384,7 +384,7 @@ LocalCandidatePYIN::getRemainingFeatures() } vector mpOut = mp.process(tempPitchProb); - float prevFreq = 0; + //float prevFreq = 0; for (size_t iFrame = 0; iFrame < nFrame; ++iFrame) { if (mpOut[iFrame] > 0) { @@ -392,7 +392,7 @@ LocalCandidatePYIN::getRemainingFeatures() pitchTracks[iCandidate][iFrame] = mpOut[iFrame]; freqSum[iCandidate] += mpOut[iFrame]; freqNumber[iCandidate]++; - prevFreq = mpOut[iFrame]; + //prevFreq = mpOut[iFrame]; } } diff --git a/libs/vamp-pyin/MonoPitchHMM.cpp b/libs/vamp-pyin/MonoPitchHMM.cpp index 29dd7e04df..b5ab2984f8 100644 --- a/libs/vamp-pyin/MonoPitchHMM.cpp +++ b/libs/vamp-pyin/MonoPitchHMM.cpp @@ -89,8 +89,8 @@ MonoPitchHMM::build() for (size_t iPitch = 0; iPitch < m_nPitch; ++iPitch) { int theoreticalMinNextPitch = static_cast(iPitch)-static_cast(m_transitionWidth/2); - int minNextPitch = iPitch>m_transitionWidth/2 ? iPitch-m_transitionWidth/2 : 0; - int maxNextPitch = iPitchm_transitionWidth/2 ? iPitch-m_transitionWidth/2 : 0; + size_t maxNextPitch = iPitch