summaryrefslogtreecommitdiff
path: root/drumgizmo/input/midifile.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-10-08 20:50:52 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-10-08 20:50:52 +0200
commita21ab2d9260bd4cb1af1de0b8cd4cad9e9687861 (patch)
tree4b449b45a05e2a5bd33859eaa2c7b1e7cf1bcca6 /drumgizmo/input/midifile.cc
parent30c2b53047b11b1517fa44b49adc52bc5119649c (diff)
Move event.h and audiotypes.h into src and get rid of the obsolete include folder.
Diffstat (limited to 'drumgizmo/input/midifile.cc')
-rw-r--r--drumgizmo/input/midifile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/drumgizmo/input/midifile.cc b/drumgizmo/input/midifile.cc
index c3bd8ae..562ed37 100644
--- a/drumgizmo/input/midifile.cc
+++ b/drumgizmo/input/midifile.cc
@@ -157,7 +157,7 @@ void MidifileInputEngine::run(size_t pos, size_t len, std::vector<event_t>& even
events.emplace_back();
auto& event = events.back();
- event.type = TYPE_ONSET;
+ event.type = EventType::OnSet;
size_t evpos = current_event->time_seconds * (samplerate / speed);
event.offset = evpos - pos;
@@ -183,7 +183,7 @@ void MidifileInputEngine::run(size_t pos, size_t len, std::vector<event_t>& even
else
{
assert(len >= 1);
- events.push_back({TYPE_STOP, 0, len-1, 0.f});
+ events.push_back({EventType::Stop, 0, len-1, 0.f});
}
}
}