Skip to content

Commit

Permalink
added crt
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmkarlsson committed Feb 4, 2023
1 parent 8f4d008 commit 8ef12b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions synths/core-modules.scd
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ they respond to the existence of a value for one of the parameters
hold: ~hld,
release: ~rel,
crv: ~crv,
crt: ~crt,
out: ~out
])
}, { ~atk.notNil or: { ~rel.notNil }});
Expand Down
10 changes: 3 additions & 7 deletions synths/core-synths.scd
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/*
EVENT - BASED
CORE SYNTHDEF EFFECTS FOR SUPERCLEAN
These synthdefs can be hacked at runtime, and hey, if something breaks, you can always download a fresh version.
Live coding them requires that you have your SuperClean instance in an environment variable called ~clean.
A quick note for hackers: You might think that default values for parameters get set in
the SynthDefs, but alas they do not. Default values for parameters get set in CleanAux.sc
*/

(
Expand Down Expand Up @@ -181,9 +178,9 @@ the SynthDefs, but alas they do not. Default values for parameters get set in Cl
ReplaceOut.ar(out, Limiter.ar(LeakDC.ar(signal * (amp+diff))));
}, [\ir, \ir]).add;

SynthDef(\clean_envelope ++ numChannels, { |out, attack = 0, hold = 0, release = inf, crv = 0.3 |
SynthDef(\clean_envelope ++ numChannels, { |out, attack = 0, hold = 0, release = inf, crv = 0.3, crt = 0.3|
var signal = In.ar(out, numChannels);
signal = signal * EnvGen.ar(Env.linen(attack, hold, release, 1, crv));
signal = signal * EnvGen.ar(Env.linen(attack, hold, release, 1, [crv, 0, crt]));
ReplaceOut.ar(out, signal);
}, [\ir, \ir, \ir, \ir]).add;

Expand Down Expand Up @@ -332,7 +329,6 @@ the SynthDefs, but alas they do not. Default values for parameters get set in Cl
]
)
}, { ~frz.notNil } );
SynthDef('spectral-freeze' ++ ~clean.numChannels, { |out, freeze| // broken, use at own risk, values seem to be 0 for off and 1 for on
var signal, chain, in;
signal = In.ar(out, ~clean.numChannels);
Expand Down Expand Up @@ -627,4 +623,4 @@ SynthDef(\clean_spectralPhaseDecorrelator, {
}, [\ir]).add;

}.value
)
)

0 comments on commit 8ef12b5

Please sign in to comment.