Subversion Repositories svn.mios32

Rev

Rev 1502 | Rev 1759 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1502 Rev 1724
Line 1... Line 1...
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
// $Id: MidiMonitor.cpp 1502 2012-09-05 22:25:07Z tk $
2
// $Id: MidiMonitor.cpp 1724 2013-03-28 20:23:40Z tk $
3
/*
3
/*
4
 * MIDI Monitor Component
4
 * MIDI Monitor Component
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
7
 *
7
 *
Line 155... Line 155...
155
155
156
//==============================================================================
156
//==============================================================================
157
void MidiMonitor::handleIncomingMidiMessage(const MidiMessage& message, uint8 runningStatus)
157
void MidiMonitor::handleIncomingMidiMessage(const MidiMessage& message, uint8 runningStatus)
158
{
158
{
159
    uint32 size = message.getRawDataSize();
159
    uint32 size = message.getRawDataSize();
160
    uint8 *data = message.getRawData();
160
    uint8 *data = (uint8 *)message.getRawData();
161
161
162
    bool isMidiClock = data[0] == 0xf8;
162
    bool isMidiClock = data[0] == 0xf8;
163
    bool isActiveSense = data[0] == 0xfe;
163
    bool isActiveSense = data[0] == 0xfe;
164
    bool isMiosTerminalMessage = SysexHelper::isValidMios32DebugMessage(data, size, -1);
164
    bool isMiosTerminalMessage = SysexHelper::isValidMios32DebugMessage(data, size, -1);
165
165