MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Attributes | List of all members
Ms::MidiEvent Class Reference

#include <event.h>

Inheritance diagram for Ms::MidiEvent:
Inheritance graph
[legend]
Collaboration diagram for Ms::MidiEvent:
Collaboration graph
[legend]

Public Member Functions

 MidiEvent ()
 
 MidiEvent (uchar t, uchar c, uchar a, uchar b)
 
const uchar * edata () const
 
void setEData (uchar *d)
 
int len () const
 
void setLen (int l)
 
int metaType () const
 
void setMetaType (int v)
 
- Public Member Functions inherited from Ms::MidiCoreEvent
 MidiCoreEvent ()
 
 MidiCoreEvent (uchar t, uchar c, uchar a, uchar b)
 
void set (uchar t, uchar c, uchar a, uchar b)
 
uchar type () const
 
void setType (uchar t)
 
uchar channel () const
 
void setChannel (uchar c)
 
int dataA () const
 
int pitch () const
 
int controller () const
 
void setDataA (int v)
 
void setPitch (int v)
 
void setController (int v)
 
int dataB () const
 
int velo () const
 
int value () const
 
void setDataB (int v)
 
void setVelo (int v)
 
void setValue (int v)
 
void setData (int a, int b)
 
void setData (int t, int a, int b)
 
bool isChannelEvent () const
 
void write (XmlWriter &) const
 
bool operator== (const MidiCoreEvent &e) const
 

Protected Attributes

uchar * _edata
 
int _len
 
int _metaType
 
- Protected Attributes inherited from Ms::MidiCoreEvent
uchar _type = 0
 
uchar _channel = 0
 
uchar _a = 0
 
uchar _b = 0
 

Constructor & Destructor Documentation

◆ MidiEvent() [1/2]

Ms::MidiEvent::MidiEvent ( )
inline

◆ MidiEvent() [2/2]

Ms::MidiEvent::MidiEvent ( uchar  t,
uchar  c,
uchar  a,
uchar  b 
)
inline

Member Function Documentation

◆ edata()

const uchar* Ms::MidiEvent::edata ( ) const
inline

◆ len()

int Ms::MidiEvent::len ( ) const
inline

◆ metaType()

int Ms::MidiEvent::metaType ( ) const
inline

◆ setEData()

void Ms::MidiEvent::setEData ( uchar *  d)
inline

◆ setLen()

void Ms::MidiEvent::setLen ( int  l)
inline

◆ setMetaType()

void Ms::MidiEvent::setMetaType ( int  v)
inline

Member Data Documentation

◆ _edata

uchar* Ms::MidiEvent::_edata
protected

◆ _len

int Ms::MidiEvent::_len
protected

◆ _metaType

int Ms::MidiEvent::_metaType
protected

The documentation for this class was generated from the following file: