-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Currently # djf 0.5 is audible, ideally it would not be
SuperDirt/library/default-effects-extra.scd
Lines 400 to 415 in de8753c
| SynthDef("dj-filter" ++ ~dirt.numChannels, { |out, djf| | |
| var signal; | |
| var lpfCutoffFreq = djf.linexp(0, 0.5, 20, 10000); | |
| var hpfCutoffFreq = djf.linexp(0.5, 1, 20, 10000); | |
| signal = In.ar(out, ~dirt.numChannels); | |
| signal = RHPF.ar( | |
| RLPF.ar( | |
| signal, | |
| lpfCutoffFreq | |
| ), | |
| hpfCutoffFreq | |
| ); | |
| ReplaceOut.ar(out, signal) | |
| }, [\ir]).add; |
This could be achieved using perhaps some kind of control structure (incorrect code below)
signal = Select.ar(djf != 0.5, [
signal,
RHPF.ar(
RLPF.ar(
signal,
lpfCutoffFreq
),
hpfCutoffFreq
)
]);
An alternative might be # djf "-1"
yaxu
Metadata
Metadata
Assignees
Labels
No labels