diff --git a/src/algorithms/tonal/pitch2midi.cpp b/src/algorithms/tonal/pitch2midi.cpp index d40baeb9d..411df1b53 100644 --- a/src/algorithms/tonal/pitch2midi.cpp +++ b/src/algorithms/tonal/pitch2midi.cpp @@ -151,7 +151,6 @@ void Pitch2Midi::compute() _noteOff = true; updateDnote(); setOutputs(dnote, 0.0, _minNoteChangePeriod); - //E_INFO("offset(unvoiced frame)"); _unvoicedFrameCounter = 0; _offsetCheckCounter = 0; _onsetCheckCounter = 0; diff --git a/test/src/unittests/tonal/test_audio2midi.py b/test/src/unittests/tonal/test_audio2midi.py index e4d95751b..4d7732500 100644 --- a/test/src/unittests/tonal/test_audio2midi.py +++ b/test/src/unittests/tonal/test_audio2midi.py @@ -34,10 +34,8 @@ def testZero(self): self.assertEqual(pitch, 0) self.assertEqual(loudness, 0.0) self.assertEqual(message_type, []) - self.assertEqual(midi_note.tolist(), array([0.0, 0.0], dtype=float32).tolist()) - self.assertEqual( - time_compensation.tolist(), array([0.0, 0.0], dtype=float32).tolist() - ) + self.assertEqual(midi_note.tolist(), array([], dtype=float32).tolist()) + self.assertEqual(time_compensation.tolist(), array([], dtype=float32).tolist()) def assessNoteList( self,