From 6faeb841a0cc452b9e94b3e9c36ab93623128475 Mon Sep 17 00:00:00 2001 From: Grissess Date: Thu, 9 Jun 2016 21:57:51 -0400 Subject: Minor changes --- mkiv.py | 2 ++ shiv.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mkiv.py b/mkiv.py index ff2fdbf..d069a93 100644 --- a/mkiv.py +++ b/mkiv.py @@ -155,6 +155,8 @@ for fname in args: sorted_events.sort(key=lambda x: x.abstick) bpm_at = {0: 120} + print 'Computing tempos...' + for sev in sorted_events: if isinstance(sev.ev, midi.SetTempoEvent): if options.debug: diff --git a/shiv.py b/shiv.py index 8444a72..0a8169e 100644 --- a/shiv.py +++ b/shiv.py @@ -71,13 +71,13 @@ def show_hist(values, height=None): miny, maxy = min(ys), max(ys) xv = range(minx, maxx + 1) incs = max((maxy - miny) / height, 1) - print COL.BLUE + '\t --' + '-' * len(xv) + COL.NONE + print COL.CYAN + '\t --' + '-' * len(xv) + COL.NONE for ub in range(maxy + incs, miny, -incs): - print '{}{}\t | {}{}{}'.format(COL.BLUE, ub, COL.YELLOW, ''.join(['#' if values.get(x) > (ub - incs) else ' ' for x in xv]), COL.NONE) - print COL.BLUE + '\t |-' + '-' * len(xv) + COL.NONE + print '{}{}\t | {}{}{}'.format(COL.CYAN, ub, COL.YELLOW, ''.join(['#' if values.get(x) > (ub - incs) else ' ' for x in xv]), COL.NONE) + print COL.CYAN + '\t |-' + '-' * len(xv) + COL.NONE xvs = map(str, xv) for i in range(max(map(len, xvs))): - print COL.BLUE + '\t ' + ''.join([s[i] if len(s) > i else ' ' for s in xvs]) + COL.NONE + print COL.CYAN + '\t ' + ''.join([s[i] if len(s) > i else ' ' for s in xvs]) + COL.NONE print xcs = map(str, [values.get(x, 0) for x in xv]) for i in range(max(map(len, xcs))): -- cgit v1.2.3-70-g09d2