diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-03-21 14:59:14 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-03-21 14:59:14 -0400 |
commit | e169020157fae20f21f1f9e244cb86ca049176e8 (patch) | |
tree | 601279c023618aff30335efb701c84a0fbb2ae83 /song.h | |
parent | c4529c56a4687b693254e2d87d57483ce94a7564 (diff) |
Song methods utilize the difficulty parameter
Diffstat (limited to 'song.h')
-rw-r--r-- | song.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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; |