Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviliz committed Nov 7, 2024
1 parent f6c0af7 commit da4661f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/algorithms/tonal/audio2midi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit da4661f

Please sign in to comment.