diff options
Diffstat (limited to 'chordNote.cpp')
-rw-r--r-- | chordNote.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chordNote.cpp b/chordNote.cpp index 8b0051c..1fa7549 100644 --- a/chordNote.cpp +++ b/chordNote.cpp @@ -94,6 +94,12 @@ void ChordNote::print(){ std::cout << "Start: " << start << " End: " << end << std::endl; } +// Trim all timings to milliseconds +void ChordNote::trim(){ + start = start/1000000; + end = end/1000000; +} + // }}} // vim: syntax=cpp.doxygen |