From e169020157fae20f21f1f9e244cb86ca049176e8 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 21 Mar 2023 14:59:14 -0400 Subject: Song methods utilize the difficulty parameter --- song.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'song.h') 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 easy; std::vector medium; std::vector hard; std::vector expert; - private: const std::string chartFile; std::string title; -- cgit v1.2.3