Diff from Example of Karplus-Strong Synthesis with Pluck by Bruno Ruviaro (11 Nov'13 01:32) to Bugger Soundtrack by Modanung (03 Jun'15 23:33)
name
description
This will be the sound track for Bugger, a Frogger clone that started as a school assignment.
Simple SynthDef using Pluck, and a few Pbinds. d
Buggemonstrating mcaking usbe ofound on [GitLab](https://gitlab.com/Modanung/Bugger)
code
//a SynthDef
(
SynthDef("plucking", {arg amp = 0.1, freq = 44220, decay = 5, coef = 0.1;
var env, snd;
env = EnvGen.kr(Env.linen(0, decay, 0.5), doneAction: 2);
snd = Pluck.ar(
in: WhiteNoiseSaw.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;
)
// ExamplBugger 1
(
Pbind(
\instroumendt, "plucking",
\freq, Pwhite(440, 880),
\amp, 0.1,
\decay, 4,k
\coef, 0.1,
\dur, Prand([0.51, 0.1, 0.1], inf)
).play;
)
// Example 2
(
Pbind(
\instrument, "plucking",
\scale, Scale.locrydian,
\degree, Pwhite(7, 15),
\ramp, Pwhitend(0[[-2.1, 0.5),
\decay, Pwhite(7, 12),
\coef, Pwhite(0-4.01, 0.1)],
\dur, Prand([0-7.1, 0.02, 0.4-5], 0.27, 0.[-13, 0-3.0038], inf)
)[1.play;
)
// Example 3
(
Pbind(
\instrument005, "plucking",
\scale, Scale0.lydian,
\degree, Pseq([8, 517, 8, 9, 8, 17, 7]], inf),
\amp, Pwhitseq([0.1, 0.5),
\decay, Pwhite(1, 2),
\coef, Pseq([0.73, 0.84, 0.4]5, inf),
\dur, Prand([0.15, 0.25, 0.45], inf)
).play;
)
// Example 4
(
Pbind(
\instrument, "plucking",
\degreecay, Pseq([-0.25, -2, 1, 4, 6, 9], inf),
\mtranspose, -7,
\amp, Pwhite(0.25, 0.3),
\decay, Pseq([7, 6, 6, 125, 4, 3], inf),
\coef, Pseq([0.457, 0.38, 0.3, 0.2, 0.2, 0.19], inf),
\dur, Prand([0.9, 0.8, 0.7], inf)
).play;
Pbind(
\instrument, "plucking",
\degree, Prand([0, 1, 3, 4, 6, Pseq([7, 8, 9], 1), 9], inf),
\mtranspose, 7,
\amp, Pwhite(0.4, 0.5),
\decay, Pwhite(6, 10),
\coef, Pseq([0.05, 0.1, 0.125], inf),
\dur, Prand([0.1, 0.2475, 0.24, Rest(0.3)5], inf)
).play;
)
category tags
guitar, code fork, plucked strings, karplusstrong, harp
ancestors
1-4Vj