|
From: Lasse Kärkkäi. <tr...@us...> - 2010-07-18 06:38:51
|
Module: performous
Branch: portaudio
Commit: 0682ec2fb913ef05927f7595e9fc9650f5680e3c
Author: Vincent Le Ligeour <yo...@us...>
Date: Tue Jul 13 20:15:47 2010 +0200
Worked around a bug in midi lyrics parsing
---
game/songparser-ini.cc | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/game/songparser-ini.cc b/game/songparser-ini.cc
index 016ef4f..8bd6e7c 100644
--- a/game/songparser-ini.cc
+++ b/game/songparser-ini.cc
@@ -176,6 +176,16 @@ void SongParser::iniParse() {
n.end = midi.get_seconds(it2->end)+s.start;
n.notePrev = n.note = it2->note;
n.type = n.note > 100 ? Note::SLEEP : Note::NORMAL;
+ if(n.note == 116 || n.note == 103)
+ // n.type = Note::GOLDEN;
+ continue; // not yet managed by midi parser
+ else if(n.note == 124)
+ // n.type = Note::GOLDEN;
+ continue; // not yet managed by midi parser
+ else if(n.note > 100)
+ n.type = Note::SLEEP;
+ else
+ n.type = Note::NORMAL;
{
std::stringstream ss(it2->lyric);
convertToUTF8(ss);
|