From a5415219f60ea4466e8e477c5d2dc6c93d7ae46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 17 Apr 2019 16:58:33 +0200 Subject: [PATCH] Synhtesizer --- README.md | 3 ++- index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d708d47..b2dd3bb 100644 --- a/README.md +++ b/README.md @@ -2127,7 +2127,7 @@ frames_i = (add_noise(a) for a in read_wav_file('test.wav')) write_to_wav_file('test.wav', frames_i) ``` -#### Plays Popcorn: +### Synthesizer ```python # $ pip3 install simpleaudio import simpleaudio, math, struct @@ -2156,6 +2156,7 @@ Basic Script Template # from collections import namedtuple +from dataclasses import make_dataclass from enum import Enum import re import sys diff --git a/index.html b/index.html index f3b23fb..53b1315 100644 --- a/index.html +++ b/index.html @@ -1766,7 +1766,7 @@ add_noise = lambda value: max(for a in read_wav_file('test.wav')) write_to_wav_file('test.wav', frames_i) -

Plays Popcorn:

+

Synthesizer

# $ pip3 install simpleaudio
 import simpleaudio, math, struct
 from itertools import chain, repeat
@@ -1790,6 +1790,7 @@ simpleaudio.play_buffer(frames_b, 1, #
 
 from collections import namedtuple
+from dataclasses import make_dataclass
 from enum import Enum
 import re
 import sys