Skip to content

Commit 9ac00bb

Browse files
committed
Audio
1 parent 27ea919 commit 9ac00bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,12 +1534,12 @@ Audio
15341534
```python
15351535
import wave, struct
15361536
samples = [struct.pack('h', int((a-0.5)*60000)) for a in <list>]
1537-
wav = wave.open(<filename>, 'wb')
1538-
wav.setnchannels(1)
1539-
wav.setsampwidth(4)
1540-
wav.setframerate(44100)
1541-
wav.writeframes(b''.join(samples))
1542-
wav.close()
1537+
wf = wave.open(<filename>, 'wb')
1538+
wf.setnchannels(1)
1539+
wf.setsampwidth(4)
1540+
wf.setframerate(44100)
1541+
wf.writeframes(b''.join(samples))
1542+
wf.close()
15431543
```
15441544

15451545

0 commit comments

Comments
 (0)