Skip to content

Commit

Permalink
Removed dc blocker for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeoliphant committed Oct 31, 2024
1 parent 0649b4a commit 4643e66
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/nam_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,18 +288,18 @@ namespace NAM {
}
}

float dcBlockCoefficient = 1 - (220.0 / sampleRate);
//float dcBlockCoefficient = 1 - (220.0 / sampleRate);

for (unsigned int i = 0; i < n_samples; i++)
{
float dcInput = ports.audio_out[i];
//for (unsigned int i = 0; i < n_samples; i++)
//{
// float dcInput = ports.audio_out[i];

// dc blocker
ports.audio_out[i] = ports.audio_out[i] - prevDCInput + dcBlockCoefficient * prevDCOutput;
// // dc blocker
// ports.audio_out[i] = ports.audio_out[i] - prevDCInput + dcBlockCoefficient * prevDCOutput;

prevDCInput = dcInput;
prevDCOutput = ports.audio_out[i];
}
// prevDCInput = dcInput;
// prevDCOutput = ports.audio_out[i];
//}
}

uint32_t Plugin::options_get(LV2_Handle, LV2_Options_Option*)
Expand Down

0 comments on commit 4643e66

Please sign in to comment.