1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Clean up, in pursuit of how/where I'm introducing a phase error.

This commit is contained in:
Thomas Harte
2026-01-16 22:49:34 -05:00
parent 26064cb9a4
commit e67e9fd3d2
3 changed files with 9 additions and 82 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ FilterGenerator::FilterPair FilterGenerator::separation_filter() {
// Chrominance: compute as centre sample - luminance.
// TODO: would be better to apply a separate notch, but I think I've
// confused the scales and offsets.
result.chroma = result.luma;// * -1.0f;
result.chroma = result.luma * -1.0f;
result.chroma.resize(max_kernel_size_);
SignalProcessing::KaiserBessel::filter<SignalProcessing::ScalarType::Float>(
max_kernel_size_,
@@ -49,7 +49,7 @@ FilterGenerator::FilterPair FilterGenerator::separation_filter() {
result.chroma.begin(),
result.chroma.end(),
[](const auto iterator, const float value) {
*iterator -= value;
*iterator += value;
}
);