aboutsummaryrefslogtreecommitdiffstats
path: root/src/sawtooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sawtooth.c')
-rw-r--r--src/sawtooth.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sawtooth.c b/src/sawtooth.c
index 24aa529..3c242e1 100644
--- a/src/sawtooth.c
+++ b/src/sawtooth.c
@@ -98,13 +98,9 @@ runSawtooth_fa_oa(LV2_Handle instance,
Wavedata* wdat = &plugin->wdat;
float phase = plugin->phase;
- float freq;
-
for (uint32_t s = 0; s < sample_count; s++) {
- freq = frequency[s];
-
/* Lookup table to play */
- wavedata_get_table(wdat, freq);
+ wavedata_get_table(wdat, frequency[s]);
output[s] = wavedata_get_sample(wdat, phase);