summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-02 19:40:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-02 19:40:03 +0000
commita38df56f9727eff9fc836c88512074a5fbeeca59 (patch)
tree8fdcd2e4eb67de29615ef3340708c972e78eb303
parentd537434b6b85b342cd9fcabfc49ca626de049d12 (diff)
correct code for MIDIEvent::is_{spp,mtc_quarter}()
git-svn-id: svn://localhost/ardour2/branches/3.0@10866 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/evoral/evoral/MIDIEvent.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/evoral/evoral/MIDIEvent.hpp b/libs/evoral/evoral/MIDIEvent.hpp
index 79d013e00f..d2bf4142bd 100644
--- a/libs/evoral/evoral/MIDIEvent.hpp
+++ b/libs/evoral/evoral/MIDIEvent.hpp
@@ -92,8 +92,8 @@ struct MIDIEvent : public Event<Time> {
inline bool is_smf_meta_event() const { return this->_buf[0] == 0xFF; }
inline bool is_sysex() const { return this->_buf[0] == 0xF0
|| this->_buf[0] == 0xF7; }
- inline bool is_spp() const { return this->_buf[0] == 0xF2 && this->size() == 0; }
- inline bool is_mtc_quarter() const { return this->_buf[0] == 0xF1 && this->size() == 0; }
+ inline bool is_spp() const { return this->_buf[0] == 0xF2 && this->size() == 1; }
+ inline bool is_mtc_quarter() const { return this->_buf[0] == 0xF1 && this->size() == 1; }
inline bool is_mtc_full() const {
return this->size() == 10 && this->_buf[0] == 0xf0 && this->_buf[1] == 0x7f &&
this->_buf[3] == 0x01 && this->_buf[4] == 0x01;