summaryrefslogtreecommitdiff
path: root/chord.cpp
diff options
context:
space:
mode:
authorSimon Gagne <gags2431@usherbrooke.ca>2023-03-16 10:06:04 -0400
committerSimon Gagne <gags2431@usherbrooke.ca>2023-03-16 10:06:04 -0400
commitb8dadd82d4afff0e5e6b6a8a00df948045d31503 (patch)
treec0613c30de11d5261bc0bdf4a1d5522515f41eb5 /chord.cpp
parent8332074b391e824ae4b92edfd5aa658c71265449 (diff)
Commit pour deplacement vers VSStudio
Diffstat (limited to 'chord.cpp')
-rw-r--r--chord.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/chord.cpp b/chord.cpp
deleted file mode 100644
index 8c6be33..0000000
--- a/chord.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-#include "chord.h"
-
-Chord::Chord(int btn, int startTime, int endTime) {
- start = startTime;
- end = endTime;
- for (int i=0; i<5; i++) {
- notes[i] = false;
- }
- notes[btn] = true;
-};
-
-Chord::~Chord() {};
-
-void Chord::change(int button) {
- notes[button] = !notes[button];
-};
-
-void Chord::setEnd(int endTime) {
- end = endTime;
-};
-
-void Chord::setRenderStart(int renderTime) {
- renderStart = start - renderTime;
-};
-
-bool* Chord::getNotes() {
- return notes;
-};
-
-int Chord::getStart() {
- return start;
-};
-
-int Chord::getEnd() {
- return end;
-};
-
-int Chord::getRenderStart() {
- return renderStart;
-};
-
-std::regex Chord::getRegex() {
- // empty string
- std::string regex = "";
- // true becomes "t" and false becomes "f"
- // this is used to create a string of 5 characters
- // which can be used as a regex
- for (int i=0; i<5; i++) {
- regex += notes[i] ? "t" : "f";
- }
- return std::regex(regex);
-};