Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

report identical tracks

  • Loading branch information...
commit 18b541876d945be24c75b61b4b5155dc48bb5bf7 1 parent f4f9a12
Dmitry Jemerov authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 gtpdiff.py
View
4 gtpdiff.py
@@ -100,10 +100,14 @@ def compare_tracks(self):
sys.exit(1)
comparator = GTPTrackComparator(track1, track2)
+differences = False
for index, bar1, bar2 in comparator.compare_tracks():
+ differences = True
print "Difference in bar %d" % index
shortest_beat = max(bar1.shortest_beat(), bar2.shortest_beat())
print_bar(track1, bar1, shortest_beat)
print ""
print_bar(track2, bar2, shortest_beat)
print ""
+if not differences:
+ print "Tracks are identical"
Please sign in to comment.
Something went wrong with that request. Please try again.