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

#include <pos.h>

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

Public Member Functions

 PosLen (TempoMap *, TimeSigMap *)
 
 PosLen (const PosLen &)
 
void dump (int n=0) const
 
void write (XmlWriter &, const char *) const
 
void read (XmlReader &)
 
void setLenTick (unsigned)
 
void setLenFrame (unsigned)
 
unsigned lenTick () const
 
unsigned lenFrame () const
 
Pos end () const
 
unsigned endTick () const
 
unsigned endFrame () const
 
void setPos (const Pos &)
 
bool operator== (const PosLen &s) const
 
- Public Member Functions inherited from Ms::Pos
 Pos ()
 
 Pos (TempoMap *, TimeSigMap *)
 
 Pos (TempoMap *, TimeSigMap *, int measure, int beat, int tick)
 
 Pos (TempoMap *, TimeSigMap *, int minute, int sec, int frame, int subframe)
 
 Pos (TempoMap *, TimeSigMap *, unsigned, TType type=TType::TICKS)
 
 Pos (TempoMap *, TimeSigMap *, const QString &)
 
void setContext (TempoMap *t, TimeSigMap *s)
 
void dump (int n=0) const
 
unsigned time (TType t) const
 
void mbt (int *measure, int *beat, int *tick) const
 
void msf (int *minute, int *sec, int *frame, int *subframe) const
 
SigEvent timesig () const
 
void snap (int)
 
void upSnap (int)
 
void downSnap (int)
 
Pos snapped (int) const
 
Pos upSnapped (int) const
 
Pos downSnapped (int) const
 
void invalidSn ()
 
TType type () const
 
void setType (TType t)
 
Posoperator+= (const Pos &a)
 
Posoperator+= (int a)
 
Posoperator-= (const Pos &a)
 
Posoperator-= (int a)
 
bool operator>= (const Pos &s) const
 
bool operator> (const Pos &s) const
 
bool operator< (const Pos &s) const
 
bool operator<= (const Pos &s) const
 
bool operator== (const Pos &s) const
 
bool operator!= (const Pos &s) const
 
unsigned tick () const
 
unsigned frame () const
 
void setTick (unsigned)
 
void setFrame (unsigned)
 
void write (XmlWriter &, const char *) const
 
void read (XmlReader &)
 
bool valid () const
 
void setInvalid ()
 

Private Attributes

unsigned _lenTick
 
unsigned _lenFrame
 
int sn
 

Additional Inherited Members

- Protected Attributes inherited from Ms::Pos
TempoMaptempo
 
TimeSigMapsig
 

Constructor & Destructor Documentation

◆ PosLen() [1/2]

Ms::PosLen::PosLen ( TempoMap tl,
TimeSigMap sl 
)

◆ PosLen() [2/2]

Ms::PosLen::PosLen ( const PosLen p)

Member Function Documentation

◆ dump()

void Ms::PosLen::dump ( int  n = 0) const

◆ end()

Pos Ms::PosLen::end ( ) const

◆ endFrame()

unsigned Ms::PosLen::endFrame ( ) const
inline

◆ endTick()

unsigned Ms::PosLen::endTick ( ) const
inline

◆ lenFrame()

unsigned Ms::PosLen::lenFrame ( ) const

◆ lenTick()

unsigned Ms::PosLen::lenTick ( ) const

◆ operator==()

bool Ms::PosLen::operator== ( const PosLen s) const

◆ read()

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

◆ setLenFrame()

void Ms::PosLen::setLenFrame ( unsigned  len)

◆ setLenTick()

void Ms::PosLen::setLenTick ( unsigned  len)

◆ setPos()

void Ms::PosLen::setPos ( const Pos pos)

◆ write()

void Ms::PosLen::write ( XmlWriter xml,
const char *  name 
) const

Member Data Documentation

◆ _lenFrame

unsigned Ms::PosLen::_lenFrame
mutableprivate

◆ _lenTick

unsigned Ms::PosLen::_lenTick
mutableprivate

◆ sn

int Ms::PosLen::sn
mutableprivate

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