From 6c8436295908d197135cb6477d5ba1dd1ecadeda Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 13 Dec 2013 20:59:08 +0100 Subject: fix reasonable synth octave --- libs/plugins/reasonablesynth.lv2/rsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c index 42f5b5500a..cedbf1ae83 100644 --- a/libs/plugins/reasonablesynth.lv2/rsynth.c +++ b/libs/plugins/reasonablesynth.lv2/rsynth.c @@ -501,7 +501,7 @@ static void synth_init(void *synth, double rate) { const float tuning = 440; int c,k; for (k=0; k < 128; k++) { - rs->freqs[k] = (2.0 * tuning / 32.0f) * powf(2, (k - 9.0) / 12.0) / rate; + rs->freqs[k] = (tuning / 32.0f) * powf(2, (k - 9.0) / 12.0) / rate; assert(rs->freqs[k] < M_PI/2); // otherwise spatialization may phase out.. } rs->kcfilt = 12.0 / rate; -- cgit v1.2.3