#!/usr/bin/env python3 """Generates the three sound effects of the FredyGames build of Blobby Volley 2. The original bums.wav, pfiff.wav and chat.wav have no author or licence line in the repository, so this build replaces them with sounds synthesised here from plain sine waves and a seeded noise generator. They are original to the FredyGames build and released under CC0 1.0 (public domain). python3 -I make-sounds.py Output is deterministic: 16-bit mono PCM, 44100 Hz. """ import math import random import struct import sys import wave RATE = 44100 def write(path, samples): with wave.open(path, "wb") as w: w.setnchannels(1) w.setsampwidth(2) w.setframerate(RATE) w.writeframes(b"".join(struct.pack("