Skip to content

Commit 4c81ed7

Browse files
committed
Audio
1 parent 5381ec2 commit 4c81ed7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,8 +1981,7 @@ def write_to_wav_file(filename, frames_int):
19811981
#### Saves a sine wave to a WAV file:
19821982
```python
19831983
from math import pi, sin
1984-
sin_f = lambda i: sin(i * 2 * pi * 440 / 44100)
1985-
frames_f = (sin_f(i) for i in range(100000))
1984+
frames_f = (sin(i * 2 * pi * 440 / 44100) for i in range(100000))
19861985
frames_i = (int(a * 30000) for a in frames_f)
19871986
write_to_wav_file('test.wav', frames_i)
19881987
```

0 commit comments

Comments
 (0)