updates from testing
This commit is contained in:
parent
e6ca9c7ed8
commit
30033e1438
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ impl<W: Wavetable> SimpleWavetableSynthesizer<W> {
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue