From 141fd9b9b5b02257521e41e71562bed6da2523dc Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 21 Mar 2023 00:37:04 -0400 Subject: Purification par le feu --- chordNote.h | 4 ---- song.cpp | 54 ------------------------------------------------------ song.h | 32 -------------------------------- 3 files changed, 90 deletions(-) delete mode 100644 song.cpp delete mode 100644 song.h diff --git a/chordNote.h b/chordNote.h index 33a7010..c6b833a 100644 --- a/chordNote.h +++ b/chordNote.h @@ -1,8 +1,6 @@ #ifndef __CHORDNOTE_H__ #define __CHORDNOTE_H__ -#include - // Chords are used to represent a set of notes that are played together. // For this guitar hero implementation, a single note is technically a chord. // This analogy is used to make sure that simultaneous notes are always grouped @@ -30,13 +28,11 @@ class ChordNote { ChordNote(int btn, int startTime, int endTime); ~ChordNote(); void change(int button); // change note in existing chord - void setEnd(int endTime); // set the end time of the chord void setRenderStart(int renderTime); // sets when to start rendering bool* getNotes(); // get the notes in the chord int getStart(); // get the start time of the chord int getEnd(); // get the end time of the chord int getRenderStart(); // get the render time of the chord - std::regex getRegex(); // regex for this chord // compares the player's input to // the expected chord }; diff --git a/song.cpp b/song.cpp deleted file mode 100644 index 24d0b67..0000000 --- a/song.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include "song.h" - -Song::Song(std::string chartFile) { - // TODO: import and parse chartFile -} - -Song::~Song() {}; - -void Song::consolidate() { - int totalSize = chords.size(); - // Check each chord against every other chord - for (int i=0; i Song::getChords() { - return chords; -} diff --git a/song.h b/song.h deleted file mode 100644 index c8f08a1..0000000 --- a/song.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef __SONG_H__ -#define __SONG_H__ - -#include "chordNote.h" -#include - -// Contains a song for a guitar hero clone -class Song { - private: - std::string title; - std::string artist; - int duration; // in ms - std::string audioFile; // path to audio file - std::vector chords; - public: - Song(std::string chartFile); - ~Song(); - void consolidate(); // merges chords with the same start/end times - // into a single chord - ChordNote operator[](int index); - int size(); - - std::string getTitle(); - std::string getArtist(); - int getDuration(); - std::string getAudioFile(); - std::vector getChords(); -}; - -//#include "song.cpp" -#endif // __SONG_H__ - -- cgit v1.2.3