Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed indentation

  • Loading branch information...
commit a5077949eb1352311f9c3e0fbf9b3c34c360150a 1 parent d5f2582
@ppaez authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 alsamidi.py
View
20 alsamidi.py
@@ -242,16 +242,16 @@ def info(self):
if tags:
print(tags)
for i, track in enumerate(tracks):
- if track:
- inicio = track[0][4][0]
- final = track[-1][4][0]
- druminsts = []
- if list(uniquenotes(track).keys()) == [9]:
- for drumnumber in uniquenotes(track)[9]:
- druminsts.append(drumnames[int(drumnumber)])
- print(str(i) + ':', names[i].ljust(15), final - inicio,
- 'Sec.', len(track), 'events,', uniquenotes(track),
- ','.join(druminsts))
+ if track:
+ inicio = track[0][4][0]
+ final = track[-1][4][0]
+ druminsts = []
+ if list(uniquenotes(track).keys()) == [9]:
+ for drumnumber in uniquenotes(track)[9]:
+ druminsts.append(drumnames[int(drumnumber)])
+ print(str(i) + ':', names[i].ljust(15), final - inicio,
+ 'Sec.', len(track), 'events,', uniquenotes(track),
+ ','.join(druminsts))
def read(self, path):
'Read data from ALSACSV file.'
Please sign in to comment.
Something went wrong with that request. Please try again.