mzk

- music theory helper
git clone git://git.acid.vegas/mzk.git
Log | Files | Refs | Archive | README | LICENSE

commit e9326b22d9130ff7d8550637b9726b396cb0e831
parent f2506cd785c9aec06555f4696da2d2c7debe7857
Author: acidvegas <acid.vegas@acid.vegas>
Date: Thu, 25 Jul 2019 02:36:58 -0400

fixed casing

Diffstat:
Mmzk/main.py | 11+++++------

1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/mzk/main.py b/mzk/main.py
@@ -12,11 +12,10 @@ import functions
 if len(sys.argv) != 2:
 	functions.print_help()
 else:
-	sys.argv[1] = sys.argv[1].lower()
 	if sys.argv[1].startswith('--chord='):
 		chord = sys.argv[1][8:]
-		key   = chord.split('_')[0]
-		type  = chord[len(key)+1:]
+		key   = chord.split('_')[0].upper()
+		type  = chord[len(key)+1:].lower()
 		if key in constants.notes and type in constants.scales:
 			functions.print_chord(key, type)
 		else:
@@ -25,13 +24,13 @@ else:
 	elif sys.argv[1] == '--chords':
 		functions.print_chords()
 	elif sys.argv[1] == '--circle':
-		functions.print_circle()
+		functions.print_circle_of_fifths()
 	elif sys.argv[1] == '--intervals':
 		functions.print_intervals()
 	elif sys.argv[1].startswith('--scale='):
 		scale = sys.argv[1][8:]
-		key   = scale.split('_')[0]
-		type  = scale[len(key)+1:]
+		key   = scale.split('_')[0].upper()
+		type  = scale[len(key)+1:].lower()
 		if key in constants.notes and type in constants.scales:
 			functions.print_scale(key, type)
 		else: