|
From: rainbyte <rai...@us...> - 2012-07-17 10:43:52
|
Author: Tapio Vierros <tap...@gm...>
Date: Tue Nov 22 21:25:26 2011 +0200
Fixed Synth.
---
game/audio.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/audio.cc b/game/audio.cc
index 3484c8c..8cd85f7 100644
--- a/game/audio.cc
+++ b/game/audio.cc
@@ -279,7 +279,7 @@ struct Synth {
if (it == m_notes.end() || it->type == Note::SLEEP || it->begin > position) { phase = 0.0; return; }
int note = it->note % 12;
double d = (note + 1) / 13.0;
- double freq = MusicalScale().getNoteFreq(note + 12);
+ double freq = MusicalScale().getNoteFreq(note + 4 * 12);
double value = 0.0;
// Synthesize tones
for (size_t i = 0, iend = mixbuf.size(); i != iend; ++i) {
|