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

#include <noteevent.h>

Public Member Functions

 NoteEvent ()
 
 NoteEvent (int a, int b, int c)
 
void read (XmlReader &)
 
void write (XmlWriter &) const
 
int pitch () const
 
int ontime () const
 
int offtime () const
 
int len () const
 
void setPitch (int v)
 
void setOntime (int v)
 
void setLen (int v)
 
bool operator== (const NoteEvent &) const
 

Static Public Attributes

static constexpr int NOTE_LENGTH = 1000
 

Private Attributes

int _pitch
 
int _ontime
 
int _len
 

Related Functions

(Note that these are not member functions.)

PlayEventplayEventWrap (Ms::NoteEvent *t, Note *parent)
 

Constructor & Destructor Documentation

◆ NoteEvent() [1/2]

Ms::NoteEvent::NoteEvent ( )
inline

◆ NoteEvent() [2/2]

Ms::NoteEvent::NoteEvent ( int  a,
int  b,
int  c 
)
inline

Member Function Documentation

◆ len()

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

◆ offtime()

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

◆ ontime()

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

◆ operator==()

bool Ms::NoteEvent::operator== ( const NoteEvent e) const

◆ pitch()

int Ms::NoteEvent::pitch ( ) const
inline

◆ read()

void Ms::NoteEvent::read ( XmlReader e)

◆ setLen()

void Ms::NoteEvent::setLen ( int  v)
inline

◆ setOntime()

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

◆ setPitch()

void Ms::NoteEvent::setPitch ( int  v)
inline

◆ write()

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

Friends And Related Function Documentation

◆ playEventWrap()

PlayEvent * playEventWrap ( Ms::NoteEvent t,
Note parent 
)
related

Member Data Documentation

◆ _len

int Ms::NoteEvent::_len
private

◆ _ontime

int Ms::NoteEvent::_ontime
private

◆ _pitch

int Ms::NoteEvent::_pitch
private

◆ NOTE_LENGTH

constexpr int Ms::NoteEvent::NOTE_LENGTH = 1000
static

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