mzk- music theory helper |
git clone git://git.acid.vegas/mzk.git |
Log | Files | Refs | Archive | README | LICENSE |
commit f2506cd785c9aec06555f4696da2d2c7debe7857
parent 99519b0d9ea070ec90d0af69e80cd4a8cbac7d20 Author: acidvegas <acid.vegas@acid.vegas> Date: Thu, 25 Jul 2019 02:36:25 -0400 print compound intervals Diffstat:
|
1 file changed, 9 insertions(+), 1 deletion(-) |
diff --git a/mzk/functions.py b/mzk/functions.py @@ -125,7 +125,15 @@ def print_intervals(): for interval, info in constants.intervals.items(): print('│ {0} │ {1} │ {2} │'.format(str(info['semitones']).rjust(9), interval.ljust(14), info['short_name'].ljust(5))) print('└───────────┴────────────────┴───────┘') - print(print_intervals.__doc__) + + print('C O M P O U N D I N T E R V A L S'.center(42)) + print('┌───────────┬────────────────────┬───────┐') + print('│ semitones │ quality │ short │') + print('├───────────┼────────────────────┼───────┤') + for interval, info in constants.compound_intervals.items(): + print('│ {0} │ {1} │ {2} │'.format(str(info['semitones']).rjust(9), interval.ljust(18), info['short_name'].ljust(5))) + print('└───────────┴────────────────────┴───────┘') + print(trim(print_intervals.__doc__)) def print_scale(root, type, full=False): frets = (24,147) if full else (12,75) |