correct code for MIDIEvent::is_{spp,mtc_quarter}()
git-svn-id: svn://localhost/ardour2/branches/3.0@10866 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d537434b6b
commit
a38df56f97
@ -92,8 +92,8 @@ struct MIDIEvent : public Event<Time> {
|
|||||||
inline bool is_smf_meta_event() const { return this->_buf[0] == 0xFF; }
|
inline bool is_smf_meta_event() const { return this->_buf[0] == 0xFF; }
|
||||||
inline bool is_sysex() const { return this->_buf[0] == 0xF0
|
inline bool is_sysex() const { return this->_buf[0] == 0xF0
|
||||||
|| this->_buf[0] == 0xF7; }
|
|| this->_buf[0] == 0xF7; }
|
||||||
inline bool is_spp() const { return this->_buf[0] == 0xF2 && 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() == 0; }
|
inline bool is_mtc_quarter() const { return this->_buf[0] == 0xF1 && this->size() == 1; }
|
||||||
inline bool is_mtc_full() const {
|
inline bool is_mtc_full() const {
|
||||||
return this->size() == 10 && this->_buf[0] == 0xf0 && this->_buf[1] == 0x7f &&
|
return this->size() == 10 && this->_buf[0] == 0xf0 && this->_buf[1] == 0x7f &&
|
||||||
this->_buf[3] == 0x01 && this->_buf[4] == 0x01;
|
this->_buf[3] == 0x01 && this->_buf[4] == 0x01;
|
||||||
|
Loading…
Reference in New Issue
Block a user