From c72fa543449c87f3ac04a3e705d47b9351bfd406 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 29 Feb 2012 22:13:26 +0100 Subject: [PATCH] Replace plasma sound effect with one generated using Csound. This is the first sound effect which is generated from scratch using Csound. The advantages of this are: - Real source code for sound. - Anyone with a text editor can tweak the sound effects. - Source code is much more compact that the sound file itself. - Sound files can be regenerated with arbitrary quality. --- sound/Makefile | 16 ++++++++++++++++ sound/plasma.csd | 25 +++++++++++++++++++++++++ sound/plasma.ogg | Bin 11052 -> 0 bytes 3 files changed, 41 insertions(+) create mode 100644 sound/Makefile create mode 100644 sound/plasma.csd delete mode 100644 sound/plasma.ogg diff --git a/sound/Makefile b/sound/Makefile new file mode 100644 index 0000000..50dbd33 --- /dev/null +++ b/sound/Makefile @@ -0,0 +1,16 @@ +SFX = plasma +OGG = $(SFX:%=%.ogg) +WAV = $(SFX:%=%.wav) + +all: $(OGG) + +%.ogg: %.wav + oggenc $< + +%.wav: %.csd + csound -g -o $@ $< + +clean: + rm -f $(OGG) $(WAV) + +.PHONY: all clean diff --git a/sound/plasma.csd b/sound/plasma.csd new file mode 100644 index 0000000..b999fa0 --- /dev/null +++ b/sound/plasma.csd @@ -0,0 +1,25 @@ + + +sr = 48000 +ksmps = 32 +nchnls = 1 +0dbfs = 1 + +; Plasma shot: +; Basically a sine wave sweep from 2 kHz to 0.1 kHz in 0.1 s, +; but with white noise with an amplitude of 500 Hz applied to the frequency. + +instr 1 + gisine ftgen 1, 0, 16384, 10, 1 + k1 line 2500, p3, 100 + k2 linrand 500 + a1 poscil 0.2, k1 + k2, gisine + out a1 +endin + + +i 1 0 0.1 +e + + + diff --git a/sound/plasma.ogg b/sound/plasma.ogg deleted file mode 100644 index 094481d7a098d92eeae1e3ab3bfd385e402e484e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11052 zcmeHtXH-+o*Y61g2ucanNHahvp$STjpdlvo8WK7vAXPv*h|(k|gd!jU21IIvP?WB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