From 7c7cb2f93aa6249f3031b8bf9c1a286fccf3ca9b Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 13 Jun 2016 15:34:44 +0200 Subject: [PATCH] Increase verbosity --- git_sound/gitmidi.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/git_sound/gitmidi.py b/git_sound/gitmidi.py index 3415b52..385fe0e 100644 --- a/git_sound/gitmidi.py +++ b/git_sound/gitmidi.py @@ -241,10 +241,14 @@ class GitMIDI(MIDIFile): commit_count = len(commits_to_process) for commit in commits_to_process: + current_commit += 1 + if callback: - current_commit += 1 callback(commit_count, current_commit) + if self.__verbose: + print("{}/{}".format(current_commit, commit_count)) + self.__git_log.append(self.gen_beat(commit)) @property @@ -302,6 +306,9 @@ class GitMIDI(MIDIFile): if callback is not None: callback(log_length, current) + if self.__verbose: + print("{}/{}".format(current, log_length)) + # Add a long note if self.__need_commits: self.addNote(track, log_channel,