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 094481d..0000000 Binary files a/sound/plasma.ogg and /dev/null differ