1
0

feat: load synthef on startup

This commit is contained in:
2025-06-14 16:41:54 +02:00
parent fddbf09d99
commit 6f90b4d1cf
26 changed files with 214 additions and 152 deletions

View File

@ -0,0 +1,19 @@
// https://bzoennchen.github.io/supercollider-book/chapters/sounddesign/physical-modeling.html
SynthDef(\snare, {
var sig, exciter, local;
local = LocalIn.ar(2);
exciter = Impulse.ar(0!2);
sig = WhiteNoise.ar() * Decay2.ar(exciter, 0.008, 0.25) * \amp.kr(1.0);
sig = sig + local;
sig = BPF.ar(sig, \cutoff.kr(500));
local = DelayN.ar(sig, 0.01,
delaytime: 1/\freq.kr(220)) * \beta.kr(0.8);
LocalOut.ar(local);
sig = LPF.ar(sig, 5000);
// sig = JPverb.ar(sig, 0.6, 0.1);
sig = sig + PitchShift.ar(sig, 0.01, 0.9);
DetectSilence.ar(sig, doneAction: Done.freeSelf);
sig = Limiter.ar(sig);
Out.ar(0, sig);
}).add;