From eeb92cb75be95788f033587d4ee856d35d72aa54 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 14 Jun 2021 15:32:46 +0800 Subject: [PATCH] gen_pitch_table: remove workaround for resonance frequencies Hard-coding this here is not appropriate since we can tune the current and microstep to move the resonance frequency around. But really, we should be avoiding the resonating notes during arrangement, not here as a hard-coded workaround. --- gen_pitch_table.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gen_pitch_table.py b/gen_pitch_table.py index 4985c5b..e38be21 100644 --- a/gen_pitch_table.py +++ b/gen_pitch_table.py @@ -49,8 +49,6 @@ print("constexpr unsigned long midi_pitch_period[" + str(end_pitch - start_pitch for i in range(start_pitch, end_pitch): period = int(2.0 * pitch_to_period_micros(i)) name = pitch_to_name(i) - if name == "D3" or name == "D#3" or name == "E3": - period = int(period / 2) print(" " + str(period) + "ul,\t// " + name) print("};")