outputChords = ""
outputLyrics = ""
inBracket = False
for i in range(len(line)):
if line[i] == "[":
inBracket = True
outputChords = outputChords + " " * (max(0, len(outputLyrics.encode("gbk")) - len(outputChords.encode("gbk"))))
elif inBracket and line[i] == "]":
elif inBracket and line[i] == "#":
pass
elif inBracket and str.isupper(line[i]):
outputChords = outputChords + line[i]
elif inBracket:
# DONT TRANSPOSE AND PUT IN OUTPUTCHORDS
else:
outputLyrics = outputLyrics + line[i]
outputChords = ""
outputLyrics = ""
inBracket = False
for i in range(len(line)):
if line[i] == "[":
inBracket = True
outputChords = outputChords + " " * (max(0, len(outputLyrics.encode("gbk")) - len(outputChords.encode("gbk"))))
elif inBracket and line[i] == "]":
inBracket = False
elif inBracket and line[i] == "#":
pass
elif inBracket and str.isupper(line[i]):
outputChords = outputChords + line[i]
elif inBracket:
# DONT TRANSPOSE AND PUT IN OUTPUTCHORDS
outputChords = outputChords + line[i]
else:
outputLyrics = outputLyrics + line[i]