diff options
author | David Robillard <d@drobilla.net> | 2012-05-22 23:25:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-22 23:25:45 +0000 |
commit | 9529f203c09d6dc8f4c2f12c3add9ec906f4bdba (patch) | |
tree | f990dfd5dfac756e1267f63cc11bdf595dd0afd2 /src/sawtooth.c | |
parent | 5f6a3c53cb6fa129b9d869a70bfa3b44b24de7a6 (diff) | |
download | blop.lv2-9529f203c09d6dc8f4c2f12c3add9ec906f4bdba.tar.gz blop.lv2-9529f203c09d6dc8f4c2f12c3add9ec906f4bdba.tar.bz2 blop.lv2-9529f203c09d6dc8f4c2f12c3add9ec906f4bdba.zip |
Remove some silly temporary variables and unnecessary stores.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blip.lv2@4440 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/sawtooth.c')
-rw-r--r-- | src/sawtooth.c | 6 |
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); |