Skip to content

Commit dc59753

Browse files
committed
feat(equalizer): change first and last filter type to improve the feedback.
1 parent 28153c2 commit dc59753

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Firmware/FFBoard/Src/Axis.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ Axis::Axis(char axis,volatile Control_t* control) :CommandHandler("axis", CLSID_
148148

149149
// Initialize equalizer filters
150150
for (uint8_t idx = 0; idx < num_eq_bands; idx++) {
151-
eqFilters[idx].setBiquad(BiquadType::peak, eq_frequencies[idx] / filter_f, 1.0, 0.0);
151+
BiquadType type = BiquadType::peak;
152+
if (idx == 0) type = BiquadType::lowshelf;
153+
else if (idx == num_eq_bands - 1) type = BiquadType::highshelf;
154+
eqFilters[idx].setBiquad(type, eq_frequencies[idx] / filter_f, 2.14f, 0.0);
152155
}
153156

154157
CommandHandler::registerCommands(); // Internal commands

0 commit comments

Comments
 (0)