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

#include <event.h>

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

Public Member Functions

 Event ()
 
 Event (const Event &)
 
 Event (int t)
 
 ~Event ()
 
bool operator== (const Event &) const
 
void write (XmlWriter &) const
 
void dump () const
 
int noquantOntime () const
 
void setNoquantOntime (int v)
 
int noquantDuration () const
 
void setNoquantDuration (int v)
 
int ontime () const
 
void setOntime (int v)
 
int duration () const
 
void setDuration (int v)
 
int voice () const
 
void setVoice (int val)
 
int offtime () const
 
QList< Event > & notes ()
 
const uchar * edata () const
 
void setEData (uchar *d)
 
int len () const
 
void setLen (int l)
 
int metaType () const
 
void setMetaType (int v)
 
int tpc () const
 
void setTpc (int v)
 
const Notenote () const
 
void setNote (const Note *v)
 
- Public Member Functions inherited from Ms::PlayEvent
 PlayEvent ()
 
 PlayEvent (const MidiCoreEvent &e)
 
 PlayEvent (uchar t, uchar c, uchar a, uchar b)
 
float tuning () const
 
void setTuning (float 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
 

Private Attributes

int _ontime
 
int _noquantOntime
 
int _noquantDuration
 
int _duration
 
int _tpc
 
int _voice
 
QList< Event_notes
 
uchar * _edata
 
int _len
 
int _metaType
 
const Note_note
 

Additional Inherited Members

- Protected Attributes inherited from Ms::PlayEvent
float _tuning = .0f
 
- Protected Attributes inherited from Ms::MidiCoreEvent
uchar _type = 0
 
uchar _channel = 0
 
uchar _a = 0
 
uchar _b = 0
 

Constructor & Destructor Documentation

◆ Event() [1/3]

Ms::Event::Event ( )

◆ Event() [2/3]

Ms::Event::Event ( const Event e)

◆ Event() [3/3]

Ms::Event::Event ( int  t)

◆ ~Event()

Ms::Event::~Event ( )

Member Function Documentation

◆ dump()

void Ms::Event::dump ( ) const

◆ duration()

int Ms::Event::duration ( ) const
inline

◆ edata()

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

◆ len()

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

◆ metaType()

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

◆ noquantDuration()

int Ms::Event::noquantDuration ( ) const
inline

◆ noquantOntime()

int Ms::Event::noquantOntime ( ) const
inline

◆ note()

const Note* Ms::Event::note ( ) const
inline

◆ notes()

QList<Event>& Ms::Event::notes ( )
inline

◆ offtime()

int Ms::Event::offtime ( ) const
inline

◆ ontime()

int Ms::Event::ontime ( ) const
inline

◆ operator==()

bool Ms::Event::operator== ( const Event ) const

◆ setDuration()

void Ms::Event::setDuration ( int  v)
inline

◆ setEData()

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

◆ setLen()

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

◆ setMetaType()

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

◆ setNoquantDuration()

void Ms::Event::setNoquantDuration ( int  v)
inline

◆ setNoquantOntime()

void Ms::Event::setNoquantOntime ( int  v)
inline

◆ setNote()

void Ms::Event::setNote ( const Note v)
inline

◆ setOntime()

void Ms::Event::setOntime ( int  v)
inline

◆ setTpc()

void Ms::Event::setTpc ( int  v)
inline

◆ setVoice()

void Ms::Event::setVoice ( int  val)
inline

◆ tpc()

int Ms::Event::tpc ( ) const
inline

◆ voice()

int Ms::Event::voice ( ) const
inline

◆ write()

void Ms::Event::write ( XmlWriter xml) const

Member Data Documentation

◆ _duration

int Ms::Event::_duration
private

◆ _edata

uchar* Ms::Event::_edata
private

◆ _len

int Ms::Event::_len
private

◆ _metaType

int Ms::Event::_metaType
private

◆ _noquantDuration

int Ms::Event::_noquantDuration
private

◆ _noquantOntime

int Ms::Event::_noquantOntime
private

◆ _note

const Note* Ms::Event::_note
private

◆ _notes

QList<Event> Ms::Event::_notes
private

◆ _ontime

int Ms::Event::_ontime
private

◆ _tpc

int Ms::Event::_tpc
private

◆ _voice

int Ms::Event::_voice
private

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