adding a few goodies
This commit is contained in:
@ -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 {
|
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;
|
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, {
|
this.fx(pos, wet, {
|
||||||
|
|||||||
19
Classes/PseudoUgen/Segment.sc
Normal file
19
Classes/PseudoUgen/Segment.sc
Normal 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
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user