We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27ea919 commit 9ac00bbCopy full SHA for 9ac00bb
README.md
@@ -1534,12 +1534,12 @@ Audio
1534
```python
1535
import wave, struct
1536
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()
+wf = wave.open(<filename>, 'wb')
+wf.setnchannels(1)
+wf.setsampwidth(4)
+wf.setframerate(44100)
+wf.writeframes(b''.join(samples))
+wf.close()
1543
```
1544
1545
0 commit comments