adding a few goodies

This commit is contained in:
2024-06-06 11:59:42 +02:00
parent 7f071e11d3
commit c6c5c95685
2 changed files with 45 additions and 0 deletions

View File

@ -50,6 +50,32 @@
})
}
crackle {
arg pos=950, wet=1, crackles=4, cutoff=5000;
this.fx(pos, wet, {
arg in;
in + LPF.ar(Dust2.ar(crackles), cutoff)
});
}
dj {
// NOTE: taken from SuperDirt (https://github.com/musikinformatik/SuperDirt)
arg pos=950, wet=1, cutoff=4000;
this.fx(pos, wet, {
arg in;
var lpfCutoffFreq = cutoff.linexp(0, 0.5, 20, 10000);
var hpfCutoffFreq = cutoff.linexp(0.5, 1, 20, 10000);
var signal = RHPF.ar(
RLPF.ar(
in,
lpfCutoffFreq
),
hpfCutoffFreq
);
signal
})
}
flanger {
arg pos=950, wet=1, maxdelay=0.013, maxrate=10.0, delay=0.1, depth=0.08, rate=0.06, fdbk=0.0, decay=0.0;
this.fx(pos, wet, {

View File

@ -0,0 +1,19 @@
Segment {
*ar {
arg start = 0, end = 1, time = 1, curve = \lin, trig = 1, doneAction = 0;
^EnvGen.ar(
Env([start, start, end], [0, time], curve),
trig,
doneAction: doneAction
)
}
*kr {
arg start = 0, end = 1, time = 1, curve = \lin, trig = 1, doneAction = 0;
^EnvGen.kr(
Env([start, start, end], [0, time], curve),
trig,
doneAction: doneAction
)
}
}