1 | commit f2506cd785c9aec06555f4696da2d2c7debe7857 |
2 | Author: acidvegas <acid.vegas@acid.vegas> |
3 | Date: Thu Jul 25 02:36:25 2019 -0400 |
4 | |
5 | print compound intervals |
6 | --- |
7 | mzk/functions.py | 10 +++++++++- |
8 | 1 file changed, 9 insertions(+), 1 deletion(-) |
9 | |
10 | diff --git a/mzk/functions.py b/mzk/functions.py |
11 | index 344f42e..8ab115c 100644 |
12 | --- a/mzk/functions.py |
13 | +++ b/mzk/functions.py |
14 | @@ -125,7 +125,15 @@ def print_intervals(): |
15 | for interval, info in constants.intervals.items(): |
16 | print('│ {0} │ {1} │ {2} │'.format(str(info['semitones']).rjust(9), interval.ljust(14), info['short_name'].ljust(5))) |
17 | print('└───────────┴────────────────┴───────┘') |
18 | - print(print_intervals.__doc__) |
19 | + |
20 | + print('C O M P O U N D I N T E R V A L S'.center(42)) |
21 | + print('┌───────────┬────────────────────┬───────┐') |
22 | + print('│ semitones │ quality │ short │') |
23 | + print('├───────────┼────────────────────┼───────┤') |
24 | + for interval, info in constants.compound_intervals.items(): |
25 | + print('│ {0} │ {1} │ {2} │'.format(str(info['semitones']).rjust(9), interval.ljust(18), info['short_name'].ljust(5))) |
26 | + print('└───────────┴────────────────────┴───────┘') |
27 | + print(trim(print_intervals.__doc__)) |
28 | |
29 | def print_scale(root, type, full=False): |
30 | frets = (24,147) if full else (12,75) |