summaryrefslogtreecommitdiff
path: root/song.h
diff options
context:
space:
mode:
Diffstat (limited to 'song.h')
-rw-r--r--song.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/song.h b/song.h
index 69cdbd5..73ae2bf 100644
--- a/song.h
+++ b/song.h
@@ -14,20 +14,21 @@
class Song{
public:
+ // Constructors/Destructors
Song(std::string chartFile);
~Song();
-
- void parseInfo(); // info from "Song" section
- void parseSync(); // timestamps from "SyncTrack" section
- bool parseChords(int difficulty); // chords from "Events" section
-
+ // Pre-Processing
+ void parseInfo(); // info from "Song" section
+ void parseSync(); // timestamps from "SyncTrack" section
+ bool parseChords(int difficulty=0); // chords from "Events" section
+ void consolidateChords(int difficulty=0); // Merge chords with same start/end times
+ void trim(int difficulty); // Trim chord timings from
+ // nanoseconds to milliseconds
+ // Print statements for debugging
void print();
void printTimestamps();
- void printChords(int difficulty);
-
- void consolidateChords(int difficulty); // Merge chords with same start/end times
- void trim(int difficulty); // Trim chord timings from nanoseconds to milliseconds
-
+ void printChords(int difficulty=0);
+ // Getters
std::string getChartFile();
std::string getTitle();
std::string getArtist();
@@ -36,12 +37,11 @@ class Song{
std::string getYear();
std::string getGenre();
std::string getAudioFile();
-
+ // Public variables (Chord vectors for each difficulty) TODO: Make private
std::vector<ChordNote> easy;
std::vector<ChordNote> medium;
std::vector<ChordNote> hard;
std::vector<ChordNote> expert;
-
private:
const std::string chartFile;
std::string title;