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

#include <importptb.h>

Collaboration diagram for Ms::PowerTab:
Collaboration graph
[legend]

Classes

struct  chordData
 
struct  ptBar
 
struct  ptBeat
 
struct  ptChord
 
struct  ptChordText
 
struct  ptComponent
 
struct  ptDirection
 
struct  ptGuitarIn
 
struct  ptNote
 
struct  ptPosition
 
struct  ptSection
 
struct  ptSong
 
struct  ptSongInfo
 
struct  ptSymbol
 
struct  ptTrack
 
struct  stRhytmSlash
 
struct  TrackInfo
 

Public Member Functions

 PowerTab (QFile *f, MasterScore *s)
 
Score::FileError read ()
 

Private Types

typedef std::list< shared_ptr< ptBeat > > tBeatList
 

Private Member Functions

bool readBoolean ()
 
unsigned char readUChar ()
 
char readChar ()
 
unsigned short readShort ()
 
int readInt ()
 
void skip (int len=1)
 
std::string readString (int length=-1)
 
void readSongInfo (ptSongInfo &info)
 
void readDataInstruments (ptTrack &info)
 
void readTrackInfo (ptTrack &info)
 
void readGuitarIn (ptTrack &info)
 
void readTempoMarker (ptTrack &info)
 
void readSectionSymbol (ptTrack &info)
 
void readSection (ptSection &sec)
 
void readBarLine (ptSection &sec)
 
void readDirection (ptSection &sec)
 
void readTimeSignature (ptBar *bar)
 
void readStaff (int staff, ptSection &sec)
 
void readPosition (int staff, int voice, ptSection &sec)
 
void readNote (ptBeat *beat)
 
void readRehearsalSign (ptSection &sec)
 
void readChordText (ptSection &sec)
 
void readChord (ptTrack &si)
 
void readRhytmSlash (ptSection &sec)
 
void readFloatingText ()
 
void readFontSettings ()
 
void readDynamic ()
 
void readKeySignature ()
 
bool readVersion ()
 
int readHeaderItems ()
 
std::vector< int > getStaffMap (ptSection &sec)
 
void addToScore (ptSection &sec)
 
MeasurecreateMeasure (ptBar *bar, const Fraction &tick)
 
void fillMeasure (tBeatList &elist, Measure *measure, int staff, std::vector< Note *> &)
 
void addPalmMute (Chord *)
 

Private Attributes

QFile * _file
 
MasterScorescore
 
std::vector< ptBar * > bars
 
std::vector< int > lastStaffMap
 
int repeatCount { 0 }
 
int staves { 0 }
 
ptTrackcurTrack
 
int staffInc { 0 }
 
char lastPart { 0 }
 
ptSectioncur_section
 
std::vector< PalmMute * > _palmMutes
 

Member Typedef Documentation

◆ tBeatList

typedef std::list<shared_ptr<ptBeat> > Ms::PowerTab::tBeatList
private

Constructor & Destructor Documentation

◆ PowerTab()

Ms::PowerTab::PowerTab ( QFile *  f,
MasterScore s 
)
inline

Member Function Documentation

◆ addPalmMute()

void Ms::PowerTab::addPalmMute ( Chord chord)
private

◆ addToScore()

void Ms::PowerTab::addToScore ( ptSection sec)
private

◆ createMeasure()

Measure * Ms::PowerTab::createMeasure ( ptBar bar,
const Fraction tick 
)
private

◆ fillMeasure()

void Ms::PowerTab::fillMeasure ( tBeatList elist,
Measure measure,
int  staff,
std::vector< Note *> &  tiedNotes 
)
private

◆ getStaffMap()

std::vector< int > Ms::PowerTab::getStaffMap ( ptSection sec)
private

◆ read()

Score::FileError Ms::PowerTab::read ( )

◆ readBarLine()

void Ms::PowerTab::readBarLine ( ptSection sec)
private

◆ readBoolean()

bool Ms::PowerTab::readBoolean ( )
private

◆ readChar()

char Ms::PowerTab::readChar ( )
private

◆ readChord()

void Ms::PowerTab::readChord ( ptTrack si)
private

◆ readChordText()

void Ms::PowerTab::readChordText ( ptSection sec)
private

◆ readDataInstruments()

void Ms::PowerTab::readDataInstruments ( ptTrack info)
private

◆ readDirection()

void Ms::PowerTab::readDirection ( ptSection sec)
private

◆ readDynamic()

void Ms::PowerTab::readDynamic ( )
private

◆ readFloatingText()

void Ms::PowerTab::readFloatingText ( )
private

◆ readFontSettings()

void Ms::PowerTab::readFontSettings ( )
private

◆ readGuitarIn()

void Ms::PowerTab::readGuitarIn ( ptTrack info)
private

◆ readHeaderItems()

int Ms::PowerTab::readHeaderItems ( )
private

◆ readInt()

int Ms::PowerTab::readInt ( )
private

◆ readKeySignature()

void Ms::PowerTab::readKeySignature ( )
private

◆ readNote()

void Ms::PowerTab::readNote ( ptBeat beat)
private

◆ readPosition()

void Ms::PowerTab::readPosition ( int  staff,
int  voice,
ptSection sec 
)
private

◆ readRehearsalSign()

void Ms::PowerTab::readRehearsalSign ( ptSection sec)
private

◆ readRhytmSlash()

void Ms::PowerTab::readRhytmSlash ( ptSection sec)
private

◆ readSection()

void Ms::PowerTab::readSection ( ptSection sec)
private

◆ readSectionSymbol()

void Ms::PowerTab::readSectionSymbol ( ptTrack info)
private

◆ readShort()

unsigned short Ms::PowerTab::readShort ( )
private

◆ readSongInfo()

void Ms::PowerTab::readSongInfo ( ptSongInfo info)
private

◆ readStaff()

void Ms::PowerTab::readStaff ( int  staff,
ptSection sec 
)
private

◆ readString()

std::string Ms::PowerTab::readString ( int  length = -1)
private

◆ readTempoMarker()

void Ms::PowerTab::readTempoMarker ( ptTrack info)
private

◆ readTimeSignature()

void Ms::PowerTab::readTimeSignature ( ptBar bar)
private

◆ readTrackInfo()

void Ms::PowerTab::readTrackInfo ( ptTrack info)
private

◆ readUChar()

unsigned char Ms::PowerTab::readUChar ( )
private

◆ readVersion()

bool Ms::PowerTab::readVersion ( )
private

◆ skip()

void Ms::PowerTab::skip ( int  len = 1)
private

Member Data Documentation

◆ _file

QFile* Ms::PowerTab::_file
private

◆ _palmMutes

std::vector<PalmMute*> Ms::PowerTab::_palmMutes
private

◆ bars

std::vector<ptBar*> Ms::PowerTab::bars
private

◆ cur_section

ptSection* Ms::PowerTab::cur_section
private

◆ curTrack

ptTrack* Ms::PowerTab::curTrack
private

◆ lastPart

char Ms::PowerTab::lastPart { 0 }
private

◆ lastStaffMap

std::vector<int> Ms::PowerTab::lastStaffMap
private

◆ repeatCount

int Ms::PowerTab::repeatCount { 0 }
private

◆ score

MasterScore* Ms::PowerTab::score
private

◆ staffInc

int Ms::PowerTab::staffInc { 0 }
private

◆ staves

int Ms::PowerTab::staves { 0 }
private

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