a43992899 commited on
Commit
d697371
1 Parent(s): 6687926

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -80,7 +80,7 @@ print(response)
80
  from symusic import Score, Synthesizer, BuiltInSF3, dump_wav
81
 
82
  abc_pattern = r'(X:\d+\n(?:[^\n]*\n)+)'
83
- abc_notation = re.findall(abc_pattern, response+'\n')
84
  s = Score.from_abc(abc_notation)
85
  audio = Synthesizer().render(s, stereo=True)
86
  dump_wav('cm_music_piece.wav', audio, sample_rate=44100, use_int16=True)
 
80
  from symusic import Score, Synthesizer, BuiltInSF3, dump_wav
81
 
82
  abc_pattern = r'(X:\d+\n(?:[^\n]*\n)+)'
83
+ abc_notation = re.findall(abc_pattern, response+'\n')[0]
84
  s = Score.from_abc(abc_notation)
85
  audio = Synthesizer().render(s, stereo=True)
86
  dump_wav('cm_music_piece.wav', audio, sample_rate=44100, use_int16=True)