diff --git a/source/lib_midi.cc b/source/lib_midi.cc index 9bc35783d..45993c240 100644 --- a/source/lib_midi.cc +++ b/source/lib_midi.cc @@ -1,4 +1,5 @@ #include +#include #include "ConfigJson.h" #include "Music.h" @@ -47,7 +48,12 @@ bool steve_generate(const char *config_file, const char *out_file) { steve::Music music(config); std::ofstream fs(PathAppend(home_dir, out_file), std::ofstream::binary); music.write_mid(fs); + std::string music_debug; + std::ostringstream ss(music_debug); + music.write_txt(ss); + ss.flush(); + LogPrint("MIDI Statistics for %s:\n", out_file); + LogPrint("%s\n", ss.str().c_str()); return true; - }