Increase verbosity

This commit is contained in:
Gergely Polonkai 2016-06-13 15:34:44 +02:00
parent 9ce2a31fca
commit 7c7cb2f93a

View File

@ -241,10 +241,14 @@ class GitMIDI(MIDIFile):
commit_count = len(commits_to_process) commit_count = len(commits_to_process)
for commit in commits_to_process: for commit in commits_to_process:
current_commit += 1
if callback: if callback:
current_commit += 1
callback(commit_count, current_commit) callback(commit_count, current_commit)
if self.__verbose:
print("{}/{}".format(current_commit, commit_count))
self.__git_log.append(self.gen_beat(commit)) self.__git_log.append(self.gen_beat(commit))
@property @property
@ -302,6 +306,9 @@ class GitMIDI(MIDIFile):
if callback is not None: if callback is not None:
callback(log_length, current) callback(log_length, current)
if self.__verbose:
print("{}/{}".format(current, log_length))
# Add a long note # Add a long note
if self.__need_commits: if self.__need_commits:
self.addNote(track, log_channel, self.addNote(track, log_channel,