Browse Source

first steps. copy SynthDef for kick. little fights with magit.

main
Luka Prinčič 5 days ago
parent
commit
7cf81475d2
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      scd/WIP_one.scd

+ 43
- 0
scd/WIP_one.scd View File

@ -0,0 +1,43 @@
// track
//
//
//
//
//
//
(
SynthDef(\fmkick, {
arg gate=1, rls=1, amp=0.1, freq=190, outBus=0, fxBus, fxwet=0;
var snd, square; //, env, fenv;
//env = ;
//fenv = EnvGen.ar(Env.perc(0.001, rls), gate, doneAction:2);
//
freq = freq * EnvGen.ar(Env.perc(0.01, rls, 1, -10));
square = Pulse.ar(freq*2 + 20, mul:0.2);
freq = freq * SinOsc.ar(freq/1.2, mul:3);
snd = SinOsc.ar(
freq: freq,
mul: EnvGen.ar(Env.perc(0.001, rls, 1, 10))
);
snd = snd + square;
snd = LeakDC.ar(snd);
snd = snd + WhiteNoise.ar(EnvGen.ar(Env.perc(0.00001, 0.01), levelScale:0.4));
snd = LPF.ar(snd, freq: EnvGen.ar(Env.perc(0.0001, rls, 20000, -4)) + 50);
snd = HPF.ar(snd, 20);
snd = snd * EnvGen.ar(Env([1,1,0], [rls, 0.1]));
snd = snd * EnvGen.ar(Env.cutoff, gate, doneAction:Done.freeSelf);
snd = Splay.ar(snd * amp);
Out.ar(fxBus, snd * fxwet);
Out.ar(outBus, snd);
}).add;
)

Loading…
Cancel
Save