| 20 | } |
| 21 | |
| 22 | static std::string hex_dump(const std::span<const uint8_t>& data) |
| 23 | { |
| 24 | std::stringstream ss; |
| 25 | ss << std::hex << std::setfill('0'); |
| 26 | for (auto b : data) |
| 27 | { |
| 28 | ss << std::setw(2) << static_cast<int>(b) << " "; |
| 29 | } |
| 30 | return ss.str(); |
| 31 | } |
| 32 | |
| 33 | TEST_CASE("Roundtrip MIDI 1 -> MIDI 2 -> MIDI 1", "[midi_roundtrip]") |
| 34 | { |