From e27abf2ab6ff6dd8f31e321abed3f5090020f8ba Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Mon, 27 Feb 2017 17:24:54 +0100 Subject: [PATCH] Fixes to hex output --- Source/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Main.cpp b/Source/Main.cpp index 0e10547..187c99b 100644 --- a/Source/Main.cpp +++ b/Source/Main.cpp @@ -499,11 +499,11 @@ class receiveMidiApplication : public JUCEApplicationBase, public MidiInputCall } else if (msg.isSongPositionPointer()) { - std::cout << "song-position " << output7Bit(msg.getSongPositionPointerMidiBeat()).paddedLeft(' ', 5) << std::endl; + std::cout << "song-position " << output14Bit(msg.getSongPositionPointerMidiBeat()).paddedLeft(' ', 5) << std::endl; } else if (msg.getRawDataSize() == 2 && msg.getRawData()[0] == 0xf3) { - std::cout << "song-select " << String(msg.getRawData()[1]).paddedLeft(' ', 3) << std::endl; + std::cout << "song-select " << output7Bit(msg.getRawData()[1]).paddedLeft(' ', 3) << std::endl; } else if (msg.getRawDataSize() == 1 && msg.getRawData()[0] == 0xf6) {