Fix fader filter cutoff calculation and update test file imports

This commit is contained in:
2026-07-13 05:29:57 +02:00
parent 6483e78a8e
commit fabac0527c
2 changed files with 5 additions and 5 deletions

View File

@@ -488,9 +488,7 @@ async function buildFaderFilterDevice(
filter.FilterType.Manual['@Value'] = highPass ? 1 : 0;
filter.LegacyFilterType.Manual['@Value'] = highPass ? 1 : 0;
filter.Slope.Manual['@Value'] = highPass ? 'false' : 'true';
filter.Cutoff.Manual['@Value'] = highPass
? 20 + value * 0.7 * 115
: 20 + value * 0.9 * 115;
filter.Cutoff.Manual['@Value'] = highPass ? 20 + value * 0.7 * 115 : 20 + value * 0.9 * 115;
return { AutoFilter: filter };
}