«Bye Fighter» by 38nonprivate

on 12 Aug'11 17:21 in sound effectsscifi

An attempt at a Star Wars sound effect!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(

// bye fighter
{

var whooshPitch, whooseVol, swish, swishPitch = 970, noise, output, timeScale = 1.5;
var trump, trumpPitch = 400, chain, buf;
var panning;

whooshPitch = EnvGen.kr(

 Env(
  [0.8, 1.0, 0.9, 0.7, 0.5, 0.3, 0.24, 0.12, 0.0],
  [0.08, 0.2, 0.15, 0.11, 0.08, 0.09, 0.06, 0.18],
  2
 ),
 timeScale: 1.3 * timeScale
 
).lag(0.2);

whooseVol = EnvGen.kr(

 Env(
  [0.0, 0.2, 0.7, 0.9, 1.0, 0.8, 0.6, 0.43, 0.22, 0.0],
  [0.4, 0.5, 0.2, 0.15, 0.17, 0.11, 0.1, 0.16, 0.28],
  2
 ),
 timeScale: 0.9 * timeScale
 
).lag(0.2, 1.5) * LFNoise1.kr(37.2, 0.2, 1).lag(0.2);

noise = Mix(CombC.ar(WhiteNoise.ar(0.2), 0.1, [whooshPitch.exprange(0.16, 0.00011), whooshPitch.exprange(0.19, 0.00013)], 0.09));
noise = noise + BrownNoise.ar(0.1);

swishPitch = swishPitch * LFNoise0.kr(365, 0.2, 1);
swishPitch = swishPitch * whooshPitch.range(0.8, 1.3);
swish = Mix.fill(
 3,
 {
 |i|
 SinOsc.ar(swishPitch + (i * whooshPitch.exprange(45, 1)), rrand(0.0, 1.0), 0.4);
 }
);
trumpPitch = trumpPitch * whooshPitch.range(0.92, 1.08);
trump = Mix.fill(3, { |i| SinOscFB.ar(trumpPitch * LFNoise0.kr(28, 0.06, 1).lag(0.8) * (0.8 + (i * 0.05)), 1.2, 0.8) }) * 0.6;
trump = RHPF.ar(trump, whooshPitch.range(120, 335), 0.2);
chain = FFT(LocalBuf(2048), trump);
chain = PV_BinShift(chain, WhiteNoise.kr.range(0.96, 1.01), whooshPitch.range(24, 28)); 
trump = IFFT(chain) * 0.2;
panning = Line.kr(-0.7, 0.7, 3);
output = noise + swish + trump;
output = output * whooseVol;

Pan2.ar(output, panning, 1.0);
}.play;

)
raw 1557 chars (focus & ctrl+a+c to copy)
reception
comments