Skip to content

Commit 1388911

Browse files
committed
feat: change signal flow
1 parent 5504a1c commit 1388911

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

clients/oooooooo/src/Parameters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void Parameters::Init(SoftcutClient* sc, int voice, float sample_rate) {
102102
0.2f, 0.1f, random_lfo, "reverb", "%",
103103
[this, voice](float value) {
104104
softCutClient_->setReverbEnabled(true);
105-
softCutClient_->setReverbSend(voice, value);
105+
softCutClient_->setReverbSend(voice, value * 0.1f);
106106
});
107107
param_[i].SetStringFunc([](float value) {
108108
return sprintf_str("%d", static_cast<int>(roundf(value * 100.0f)));

clients/oooooooo/src/Parameters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class Parameters : public Serializable {
1515
enum ParameterName {
1616
PARAM_LEVEL,
1717
PARAM_PAN,
18-
PARAM_LPF,
1918
PARAM_PREGAIN,
2019
PARAM_BIAS,
20+
PARAM_LPF,
2121
PARAM_REVERB,
2222
PARAM_REVERB_DECAY,
2323
PARAM_REVERB_DENSITY,

softcut-lib/src/Voice.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void Voice::processBlockMono(const sample_t* in, sample_t* out, int numFrames) {
8787
sch.setPre(preRamp.update());
8888
sch.setRec(recRamp.update());
8989
sampleFunc(x, &y);
90-
out[i] = svfPost.getNextSample(y) + y * svfPostDryLevel;
90+
out[i] = y;
9191
updateQuantPhase();
9292
}
9393

@@ -102,8 +102,13 @@ void Voice::processBlockMono(const sample_t* in, sample_t* out, int numFrames) {
102102
}
103103
}
104104

105-
// add tape fx
105+
// add tape fx (bias, pregain)
106106
tapeFx.ProcessMono(out, numFrames);
107+
108+
// add post filter (lpf) after tape fx
109+
for (int i = 0; i < numFrames; ++i) {
110+
out[i] = svfPost.getNextSample(out[i]) + out[i] * svfPostDryLevel;
111+
}
107112
}
108113

109114
void Voice::setSampleRate(float hz) {

0 commit comments

Comments
 (0)