From 3cfae1360f54149ffc31b101c7bc5443daaeba2c Mon Sep 17 00:00:00 2001 From: "Juan G. Victores" Date: Sun, 8 Apr 2018 19:34:11 +0200 Subject: [PATCH] Biggest change, for #21 --- song-directory-transpose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/song-directory-transpose.py b/song-directory-transpose.py index 6730254..40d8ab0 100755 --- a/song-directory-transpose.py +++ b/song-directory-transpose.py @@ -35,7 +35,7 @@ def query(question, default, skipQuery=False): def process( stringToProcess, processed): global songHalfTones #print 'String to process "' + stringToProcess + '".' - afterSplit = re.split(" |-|!|\.\.\.|\.\.|: |\*|high|open|bass|riff|palm mute|notes|m6|madd11/|m7add11/|7sus2|8|m7b5|madd13|add13", stringToProcess, 1) # 3rd parameter is maxsplit # Also works with single space, do this to catch faulty txt. + afterSplit = re.split(" |_|!|\.\.\.|\.\.|: |\*|high|open|bass|riff|palm mute|notes|m6|madd11/|m7add11/|7sus2|8|m7b5|madd13|add13", stringToProcess, 1) # 3rd parameter is maxsplit # Also works with single space, do this to catch faulty txt. #print '* Split by delimiters "' + str(afterSplit) + '".' #print 'songHalfTones:',songHalfTones if len(afterSplit[0]) != 0: