Fix some variable names

They were still globals instead of self members
This commit is contained in:
Gergely Polonkai 2016-06-09 17:08:32 +02:00
parent 140d19abd9
commit ba547ad173

View File

@ -263,7 +263,7 @@ class GitMIDI(MIDIFile):
shutil.copyfileobj(self.mem_file, f) shutil.copyfileobj(self.mem_file, f)
def generate_midi(self): def generate_midi(self):
if args.verbose: if self.__verbose:
print("Creating MIDI…") print("Creating MIDI…")
track = 0 track = 0
@ -280,13 +280,13 @@ class GitMIDI(MIDIFile):
# Add a long note # Add a long note
if self.__need_commits: if self.__need_commits:
repo_midi.addNote(track, log_channel, self.addNote(track, log_channel,
section['commit_note'], time, section['commit_note'], time,
section_len, section['commit_volume']) section_len, section['commit_volume'])
if self.__need_files: if self.__need_files:
for i, file_note in enumerate(section['file_notes']): 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, file_note['note'], time + i * duration,
duration, file_note['volume']) duration, file_note['volume'])