// synth/world/taiko_v10.scd  --  SynthDef \taiko_v10  // variation taiko drum pitched
(
SynthDef(\taiko_v10, {
    arg freq = 80, gate = 1,
        decayTime = 0.2, noiseAmt = 0.3,
        attack = 0.001, decay = 0.3, sustain = 0, release = 0.05,
        drive = 1.0, amp = 0.32, pan = 0,
        scBus = 0, scAmt = 0.3;
    var sig, env, duck, body, n, pEnv;
    pEnv = EnvGen.kr(Env([freq * 3.0, freq], [0.05], -3));
    body = SinOsc.ar(pEnv.clip(30, 2000));
    n = HPF.ar(WhiteNoise.ar, 800) *
        EnvGen.kr(Env.perc(0.0005, 0.04));
    sig = body + (n * noiseAmt);
    env = EnvGen.kr(Env.adsr(attack, decay, sustain, release), gate, doneAction: 2);
    sig = (sig * drive).softclip;
    sig = LeakDC.ar(sig * env);
    duck = 1 - (In.kr(scBus, 1) * scAmt);
    Out.ar(0, Pan2.ar(sig * amp * duck, pan));
}).add;
)
