From 29ca6bac4565d754a67414e503a215627d3aa566 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 22 Jul 2025 22:55:24 +0200 Subject: Add router implementation, untested --- daemon/src/types.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'daemon/src/types.h') diff --git a/daemon/src/types.h b/daemon/src/types.h index f09fb88..2942c0b 100644 --- a/daemon/src/types.h +++ b/daemon/src/types.h @@ -1,15 +1,37 @@ #pragma once +#include +#include #include #include #include +#include namespace midi_router { +enum class Message_Type +{ + NOTE_OFF = 0x8u, + NOTE_ON = 0x9u, + POLY_AT = 0xAu, + CONTROL_CHANGE = 0xBu, + PROGRAM_CHANGE = 0xCu, + CHANNEL_AT = 0xDu, + PITCH_WHEEL = 0xEu, + + CLOCK = 0xF8u, + MEAS_END = 0xF9u, + START = 0xFAu, + CONTINUE = 0xFBu, + STOP = 0xFCu, +}; + using Device_Id = std::string; using Device_Map = std::map; -using Target_List = std::vector; -using Route_Map = std::map; + +using Send_Callback = std::function const & payload)>; +using Target_List = std::vector; +using Route_Map = std::map>; } // namespace midi_router -- cgit v1.2.3