7 #include <midi/event.hpp>
15 class AbsoluteMIDIEvent final
19 MIDI::MIDIEvent::EventType Event;
22 class TrackCompilerContext final
28 void PushEvent(int relativeTime, const MIDI::MIDIEvent::EventType& ev);
30 const std::vector<AbsoluteMIDIEvent>& GetEvents() const;
33 std::vector<AbsoluteMIDIEvent> m_Events;
34 int m_BaseTimeForCurrentBlock = 0;
35 int m_LastEventTime = 0;
36 int m_PrevLastEventTime = 0;
39 class IIR2MIDICompiler
42 virtual ~IIR2MIDICompiler() = default;
44 virtual std::string GetSourceName() const = 0;
45 virtual TrackCompilerContext& GetTrackContext(int trackNumber) = 0;
48 } // namespace IR2MIDI