sander-wood commited on
Commit
f06c91e
·
verified ·
1 Parent(s): 58f09f8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -17
README.md CHANGED
@@ -69,22 +69,6 @@ except ImportError:
69
  subprocess.check_call(["python", '-m', 'pip', 'install', 'requests'])
70
  import requests
71
 
72
- def filter(lines):
73
- # Filter out all lines that include language information
74
- music = ""
75
- for line in lines:
76
- if line[:2] in ['A:', 'B:', 'C:', 'D:', 'F:', 'G', 'H:', 'I:', 'N:', 'O:', 'R:', 'r:', 'S:', 'T:', 'W:', 'w:', 'X:', 'Z:'] \
77
- or line=='\n' \
78
- or (line.startswith('%') and not line.startswith('%%score')):
79
- continue
80
- else:
81
- if "%" in line and not line.startswith('%%score'):
82
- line = "%".join(line.split('%')[:-1])
83
- music += line[:-1] + '\n'
84
- else:
85
- music += line + '\n'
86
- return music
87
-
88
  def load_music(filename):
89
  # Convert the file to ABC notation
90
  p = subprocess.Popen(
@@ -97,7 +81,6 @@ def load_music(filename):
97
 
98
  output = out.decode('utf-8').replace('\r', '') # Capture standard output
99
  music = unidecode(output).split('\n')
100
- music = filter(music).strip()
101
 
102
  return music
103
 
 
69
  subprocess.check_call(["python", '-m', 'pip', 'install', 'requests'])
70
  import requests
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  def load_music(filename):
73
  # Convert the file to ABC notation
74
  p = subprocess.Popen(
 
81
 
82
  output = out.decode('utf-8').replace('\r', '') # Capture standard output
83
  music = unidecode(output).split('\n')
 
84
 
85
  return music
86