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