From 27b1056897cc15c4c5779ab3f84abcecfbd05d5d Mon Sep 17 00:00:00 2001 From: Thelie Date: Sun, 30 Jan 2022 23:34:32 +0100 Subject: [PATCH] played around a bit, kickdrum should be better now. --- default.sc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/default.sc b/default.sc index 6276b24..0480a91 100644 --- a/default.sc +++ b/default.sc @@ -12,9 +12,9 @@ s.doWhenBooted({ "remote tcp server started".postln; s.notify; s.initTree }); ( SynthDef('kickdrum', { - var osc, dec, output, clickosc, clickdec; + var osc, env, output; - osc = Decay.ar(Impulse.ar(XLine.kr(1,50,20), 0.25), 0.2, PinkNoise.ar, 0) + osc = {Decay.ar(Impulse.ar(XLine.kr(1,50,20), 0.25), 0.2, PinkNoise.ar, 0)}; env = {Line.ar(1, 0, 1, doneAction: 2)}; output = osc * env; @@ -70,13 +70,13 @@ Ppar([ dur: Pseq(durations, inf), bend: Pfuncn({ |x| if(x < (1/2), 0.4, 1) }, inf) <> Pkey(\dur), ]), - /* Pbind(*[ + Pbind(*[ instrument: \hoover, amp: -20.dbamp, midinote: 74, dur: durations.sum * 2, sustain: 7, - ]) */ + ]) ]).play(TempoClock(260 / 60)); )