|
@ -10,7 +10,7 @@ def parseFingering(fingering, instrument): |
|
|
if len(fingering) == numStrings: # if the fingering is entered in concise format e.g. xx4455 |
|
|
if len(fingering) == numStrings: # if the fingering is entered in concise format e.g. xx4455 |
|
|
output = list(fingering) |
|
|
output = list(fingering) |
|
|
else: # if entered in long format e.g. x,x,10,10,11,11 |
|
|
else: # if entered in long format e.g. x,x,10,10,11,11 |
|
|
output = fingering.split(",").strip() |
|
|
|
|
|
|
|
|
output = [f.strip() for f in fingering.split(",")] |
|
|
if len(output) == numStrings: |
|
|
if len(output) == numStrings: |
|
|
return output |
|
|
return output |
|
|
else: |
|
|
else: |
|
|