1
0

initial commit

This commit is contained in:
2025-02-26 07:33:14 +01:00
commit 13e794f44b
21 changed files with 515 additions and 0 deletions

41
master_fx_bus.scd Normal file
View File

@ -0,0 +1,41 @@
(
// example effect chains
SynthDef(\fx, {
arg in;
var sig, fx, releaser;
sig = In.ar(in, 2);
fx = sig.copy;
fx = DelayL.ar(fx, 2, TRand.kr(0.25, \maxRelease.kr(2) / 3));
fx = GVerb.ar(fx, 250);
fx = LPF.ar(fx, 900);
sig = (sig + fx) * 0.5;
releaser = DetectSilence.ar(fx, doneAction: Done.freeSelf);
OffsetOut.ar(\out.kr(0), sig);
}).add;
// master channel with limiter
SynthDef(\master, {
arg in;
var sig, releaser;
sig = In.ar(in, 2);
sig = Limiter.ar(sig, -6.dbamp);
// releaser = DetectSilence.ar(sig, doneAction: Done.freeSelf);
OffsetOut.ar(\out.kr(0), sig);
}).add;
)
(
var fx, fxBus, master, masterBus;
// audio bus transmitting sound signal to synths below
fxBus = Bus.audio(Server.default, 2);
masterBus = Bus.audio(Server.default, 2);
// fx channel. output to master bus
fx = Synth.new(\fx, [\in, fxBus.index, \out, masterBus.index], Server.default, \addToTail);
// master channel. output to default audio out
master = Synth.new(\master, [\in, masterBus.index], Server.default, \addToTail);
/* sequences or routines go there */
)