From e376490106e1e118f03c21ccd7ef1d1d5e00f59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 26 Dec 2022 05:38:49 +0100 Subject: [PATCH 001/512] Audio --- README.md | 2 +- index.html | 6 +++--- parse.js | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 38bf01ad2..5091bbeac 100644 --- a/README.md +++ b/README.md @@ -2907,7 +2907,7 @@ def write_to_wav_file(filename, float_samples, nchannels=1, sampwidth=2, framera #### Saves a 440 Hz sine wave to a mono WAV file: ```python from math import pi, sin -samples_f = (sin(i * 2 * pi * 440 / 44100) for i in range(100000)) +samples_f = (sin(i * 2 * pi * 440 / 44100) for i in range(100_000)) write_to_wav_file('test.wav', samples_f) ``` diff --git a/index.html b/index.html index 01451486f..8700b8fbd 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -2371,7 +2371,7 @@

Format

Examples

Saves a 440 Hz sine wave to a mono WAV file:

from math import pi, sin
-samples_f = (sin(i * 2 * pi * 440 / 44100) for i in range(100000))
+samples_f = (sin(i * 2 * pi * 440 / 44100) for i in range(100_000))
 write_to_wav_file('test.wav', samples_f)
 
@@ -2915,7 +2915,7 @@

Format