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
1 changed files with 3 additions and 3 deletions

View File

@ -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'])