From 30033e1438c25aed4ea506cdbd69cc4ceffa0b4e Mon Sep 17 00:00:00 2001 From: sigil-03 Date: Thu, 6 Nov 2025 19:11:51 -0700 Subject: [PATCH] updates from testing --- src/synthesizer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/synthesizer.rs b/src/synthesizer.rs index dc1594b..fa448ca 100644 --- a/src/synthesizer.rs +++ b/src/synthesizer.rs @@ -40,7 +40,7 @@ impl SimpleWavetableSynthesizer { self.output_freq_hz = freq_hz; // probably a better way to do this with modulos or something... // FIXME: use the length of the square table.. or whatever wavetable tbh - self.clock_per_sample = self.clock_freq_hz / self.output_freq_hz / 2; + self.clock_per_sample = self.clock_freq_hz / self.output_freq_hz / self.wavetable.size(); } pub fn tick(&mut self) {