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

#include <pos.h>

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

Public Member Functions

 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 ()
 

Protected Attributes

TempoMaptempo
 
TimeSigMapsig
 

Private Attributes

TType _type
 
bool _valid
 
int sn
 
unsigned _tick
 
unsigned _frame
 

Friends

Pos operator+ (const Pos &a, const Pos &b)
 
Pos operator- (const Pos &a, const Pos &b)
 
Pos operator+ (const Pos &a, int b)
 
Pos operator- (const Pos &a, int b)
 

Constructor & Destructor Documentation

◆ Pos() [1/6]

Ms::Pos::Pos ( )

◆ Pos() [2/6]

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

◆ Pos() [3/6]

Ms::Pos::Pos ( TempoMap tl,
TimeSigMap sl,
int  measure,
int  beat,
int  tick 
)

◆ Pos() [4/6]

Ms::Pos::Pos ( TempoMap tl,
TimeSigMap sl,
int  minute,
int  sec,
int  frame,
int  subframe 
)

◆ Pos() [5/6]

Ms::Pos::Pos ( TempoMap tl,
TimeSigMap sl,
unsigned  t,
TType  type = TType::TICKS 
)

◆ Pos() [6/6]

Ms::Pos::Pos ( TempoMap tl,
TimeSigMap sl,
const QString &  s 
)

Member Function Documentation

◆ downSnap()

void Ms::Pos::downSnap ( int  raster)

◆ downSnapped()

Pos Ms::Pos::downSnapped ( int  raster) const

◆ dump()

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

◆ frame()

unsigned Ms::Pos::frame ( ) const

◆ invalidSn()

void Ms::Pos::invalidSn ( )
inline

◆ mbt()

void Ms::Pos::mbt ( int *  measure,
int *  beat,
int *  tick 
) const

◆ msf()

void Ms::Pos::msf ( int *  minute,
int *  sec,
int *  frame,
int *  subframe 
) const

◆ operator!=()

bool Ms::Pos::operator!= ( const Pos s) const

◆ operator+=() [1/2]

Pos & Ms::Pos::operator+= ( const Pos a)

◆ operator+=() [2/2]

Pos & Ms::Pos::operator+= ( int  a)

◆ operator-=() [1/2]

Pos & Ms::Pos::operator-= ( const Pos a)

◆ operator-=() [2/2]

Pos & Ms::Pos::operator-= ( int  a)

◆ operator<()

bool Ms::Pos::operator< ( const Pos s) const

◆ operator<=()

bool Ms::Pos::operator<= ( const Pos s) const

◆ operator==()

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

◆ operator>()

bool Ms::Pos::operator> ( const Pos s) const

◆ operator>=()

bool Ms::Pos::operator>= ( const Pos s) const

◆ read()

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

◆ setContext()

void Ms::Pos::setContext ( TempoMap t,
TimeSigMap s 
)
inline

◆ setFrame()

void Ms::Pos::setFrame ( unsigned  pos)

◆ setInvalid()

void Ms::Pos::setInvalid ( )
inline

◆ setTick()

void Ms::Pos::setTick ( unsigned  pos)

◆ setType()

void Ms::Pos::setType ( TType  t)

◆ snap()

void Ms::Pos::snap ( int  raster)

◆ snapped()

Pos Ms::Pos::snapped ( int  raster) const

◆ tick()

unsigned Ms::Pos::tick ( ) const

◆ time()

unsigned Ms::Pos::time ( TType  t) const
inline

◆ timesig()

SigEvent Ms::Pos::timesig ( ) const

◆ type()

TType Ms::Pos::type ( ) const
inline

◆ upSnap()

void Ms::Pos::upSnap ( int  raster)

◆ upSnapped()

Pos Ms::Pos::upSnapped ( int  raster) const

◆ valid()

bool Ms::Pos::valid ( ) const
inline

◆ write()

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

Friends And Related Function Documentation

◆ operator+ [1/2]

Pos operator+ ( const Pos a,
const Pos b 
)
friend

◆ operator+ [2/2]

Pos operator+ ( const Pos a,
int  b 
)
friend

◆ operator- [1/2]

Pos operator- ( const Pos a,
const Pos b 
)
friend

◆ operator- [2/2]

Pos operator- ( const Pos a,
int  b 
)
friend

Member Data Documentation

◆ _frame

unsigned Ms::Pos::_frame
mutableprivate

◆ _tick

unsigned Ms::Pos::_tick
mutableprivate

◆ _type

TType Ms::Pos::_type
private

◆ _valid

bool Ms::Pos::_valid
private

◆ sig

TimeSigMap* Ms::Pos::sig
protected

◆ sn

int Ms::Pos::sn
mutableprivate

◆ tempo

TempoMap* Ms::Pos::tempo
protected

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