From ba547ad1737f663f7f7525c615569ddfd3d28619 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 9 Jun 2016 17:08:32 +0200 Subject: [PATCH] Fix some variable names They were still globals instead of self members --- git-sound.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-sound.py b/git-sound.py index 4eccfaa..0b55463 100644 --- a/git-sound.py +++ b/git-sound.py @@ -263,7 +263,7 @@ class GitMIDI(MIDIFile): shutil.copyfileobj(self.mem_file, f) def generate_midi(self): - if args.verbose: + if self.__verbose: print("Creating MIDIā€¦") track = 0 @@ -280,13 +280,13 @@ class GitMIDI(MIDIFile): # Add a long note if self.__need_commits: - repo_midi.addNote(track, log_channel, + self.addNote(track, log_channel, section['commit_note'], time, section_len, section['commit_volume']) if self.__need_files: for i, file_note in enumerate(section['file_notes']): - repo_midi.addNote(track, decor_channel, + self.addNote(track, decor_channel, file_note['note'], time + i * duration, duration, file_note['volume'])