From da4661fc967ecc18b7b051fbe2b61f6ce0424934 Mon Sep 17 00:00:00 2001 From: Xavier Lizarraga Date: Thu, 7 Nov 2024 16:29:42 +0100 Subject: [PATCH] Remove redundant code --- src/algorithms/tonal/audio2midi.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/algorithms/tonal/audio2midi.cpp b/src/algorithms/tonal/audio2midi.cpp index d024fd0ad..053c9bc02 100644 --- a/src/algorithms/tonal/audio2midi.cpp +++ b/src/algorithms/tonal/audio2midi.cpp @@ -102,30 +102,5 @@ void Audio2Midi::compute() // E_INFO("sax2midi: a2p compute"); _pitch2midi->compute(); // E_INFO("sax2midi: p2m compute"); - - // TODO: assign outputs - - // set outputs - // get pitchMessage from log_message_formatter - /*pitchMessage = _formatter->pitch_loudness(midiNoteNumber, pitch, pitchConfidence, loudness); - - switch (messageType) - { - case 0: - noteOffMessage = _formatter->note_off(midiNoteNumber, offsetTimeCompensation); - break; - case 1: - noteOnMessage = _formatter->note_on(midiNoteNumber, pitch, pitchConfidence, onsetTimeCompensation); - break; - case 2: - noteOffMessage = _formatter->note_off(previousMidiNoteNumber, offsetTimeCompensation); - noteOnMessage = _formatter->note_on(midiNoteNumber, pitch, pitchConfidence, onsetTimeCompensation); - break; - default: - noteOnMessage = ""; - noteOffMessage = ""; - break; - }*/ - // E_INFO("sax2midi compute is done"); }