summaryrefslogtreecommitdiff
path: root/chordNote.h
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-03-21 11:48:21 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-03-21 11:48:21 -0400
commit7fa3812f1297c444754f22c3141facecbda92ec7 (patch)
treee1242ab9948dd3b9198514b508db528d3de32ab1 /chordNote.h
parent73d1b5bdda882a533767e06e75831cc5c9e552a5 (diff)
Trim ns to ms
Diffstat (limited to 'chordNote.h')
-rw-r--r--chordNote.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chordNote.h b/chordNote.h
index 47ca43f..b66af06 100644
--- a/chordNote.h
+++ b/chordNote.h
@@ -16,8 +16,8 @@
class ChordNote {
private:
- const int start; // Time in Nanoseconds
- const int end; // 0 if not set
+ int start; // Time in Nanoseconds
+ int end; // 0 if not set
bool notes[5]; // Which notes are in the chord
int renderStart; // Time in Nanoseconds
// Chords are initialized with a single button.
@@ -45,6 +45,7 @@ class ChordNote {
// Misc:
bool has(int note); // check if a note is in the chord
void print(); // For debugging
+ void trim(); // Trim all timings to milliseconds
};
//#include "chordNote.cpp"