summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-12-13 20:59:08 +0100
committerRobin Gareus <robin@gareus.org>2013-12-13 20:59:08 +0100
commit6c8436295908d197135cb6477d5ba1dd1ecadeda (patch)
tree5b3f01b2d8e8c0bfa7f6a6e99ead13e5e27c956c
parentc43a1f39a639b57f805f64a7e6f5d364301ccc55 (diff)
fix reasonable synth octave
-rw-r--r--libs/plugins/reasonablesynth.lv2/rsynth.c2
1 files changed, 1 insertions, 1 deletions
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;