|
From: rainbyte <rai...@us...> - 2012-07-17 10:47:31
|
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Feb 13 03:22:31 2012 +0200
Fix note positioning in practice screen.
---
game/screen_practice.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/screen_practice.cc b/game/screen_practice.cc
index 27bcc21..3f6862f 100644
--- a/game/screen_practice.cc
+++ b/game/screen_practice.cc
@@ -85,7 +85,7 @@ void ScreenPractice::draw_analyzers() {
int octave = note / 12 - 1;
double noteOffset = scale.getNoteNum(note);
bool sharp = scale.isSharp(note);
- noteOffset += octave*7;
+ noteOffset += (octave - 3) * 7;
noteOffset += 0.4 * scale.getNoteOffset(t->freq);
float posXnote = -0.25 + 0.2 * i + 0.002 * t->stabledb;
float posYnote = .075-noteOffset*0.015;
|