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.
This commit is contained in:
Peter Cai 2021-06-14 15:32:46 +08:00
parent dea29d97fc
commit eeb92cb75b
1 changed files with 0 additions and 2 deletions

View File

@ -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("};")