From 5009375468b780cfeb0aac7e28425699991c621b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 17 Jan 2010 20:18:29 +0100 Subject: added complete song structure added LyricLines for lines of lyrics with some words added LyricWords for single words (notes) of lyrics added construction/deconstruction of lines and words form parsed data changed BPM list to list of pointer --- src/base/songloading/songloading_strategy_txt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/base/songloading') diff --git a/src/base/songloading/songloading_strategy_txt.cpp b/src/base/songloading/songloading_strategy_txt.cpp index 5f2017a6..1a2c8eaf 100644 --- a/src/base/songloading/songloading_strategy_txt.cpp +++ b/src/base/songloading/songloading_strategy_txt.cpp @@ -171,7 +171,7 @@ namespace usdx << line_out); } - // song.new_line(line_out, line_in); + song->new_line(line_out, line_in); } void SongloadingStrategyTxt::parse_bpm(Song *song, std::istringstream& linestream, const int line_number) @@ -184,7 +184,7 @@ namespace usdx LOG4CXX_DEBUG(log, "Found new bpm in line " << line_number << " starting at beat: " << beat << " and new bpm of " << new_bpm.get_value()); - // song.new_bpm(new_beat, new_bpm); + song->new_bpm(beat, new_bpm.get_value()); } void SongloadingStrategyTxt::parse_note(Song *song, char type, std::istringstream& linestream, const int line_number) @@ -200,7 +200,7 @@ namespace usdx LOG4CXX_DEBUG(log, "Found lyric: '" << lyric << "' at line: " << line_number << " at beat: " << beat << " with length: " << length << " at height: " << height); - // song.new_note(beat, length, height, lyric); + song->new_note(type, beat, length, height, lyric); } Song* SongloadingStrategyTxt::load_header(const std::string& filename) -- cgit v1.2.3