«Bugger Soundtrack» by Modanung
on 03 Jun'15 23:33 inThis will be the sound track for Bugger, a Frogger clone that started as a school assignment. Simple SynthDef using Pluck, and a few Pbinds.
Bugger can be found on GitLab
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
//a SynthDef
(
SynthDef("plucking", {arg amp = 0.1, freq = 220, decay = 5, coef = 0.1;
var env, snd;
env = EnvGen.kr(Env.linen(0, decay, 0.5), doneAction: 2);
snd = Pluck.ar(
in: Saw.ar(freq, 0.5*amp),
trig: Impulse.kr(0),
maxdelaytime: 0.1,
delaytime: freq.reciprocal,
decaytime: decay,
coef: coef);
Out.ar(0, [snd, snd]);
}).add;
)
//Bugger soundtrack
(
Pbind(
\instrument, "plucking",
\scale, Scale.lydian,
\degree, Prand([[-2.5, -4.001], [-7.002, -5], [-1, -3.003], [1.005, 0.51]], inf),
\amp, Pseq([0.1, 0.2, 0.3, 0.4, 0.5, 0.5, 0.5, 0.5], inf),
\decay, Pseq([0.25,1, 0.5, 0.125], inf),
\coef, Pseq([0.7, 0.8, 0.9], inf),
\dur, Pseq([0.01, 0.0025, 0.2475, 0.24, 0.5], inf)
).play;
)
reception
comments