MuseScore  3.4
Music composition and notation
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Ms::ExportLy Class Reference
Collaboration diagram for Ms::ExportLy:
Collaboration graph
[legend]

Classes

struct  chordData
 
struct  chordPost
 
struct  glisstablelem
 
struct  InstructionAnchor
 
struct  jumpOrMarkerLM
 
struct  lybrackets
 
struct  lyricsData
 
struct  lyricsRecord
 
struct  staffnameinfo
 
struct  voltareg
 

Public Member Functions

 ExportLy (Score *s)
 
bool write (const QString &name)
 

Private Types

enum  voltatype {
  startending, endending, startrepeat, endrepeat,
  bothrepeat, doublebar, brokenbar, endbar,
  none
}
 

Private Member Functions

int findSlur (const Slur *s) const
 
void bracktest ()
 
void chordName (struct InstructionAnchor chordanchor)
 
void resetChordData (struct chordData &)
 
QString chord2Name (int ch)
 
void storeChord (struct InstructionAnchor chAnk)
 
void chordInsertList (chordPost *)
 
void printChordList ()
 
void cleanupChordList ()
 
void writeFingering (int &, QString fingering[5])
 
void findLyrics ()
 
void newLyricsRecord ()
 
void cleanupLyrics ()
 
void writeLyrics ()
 
void connectLyricsToStaff ()
 
void findGraceNotes (Note *, bool &, int)
 
void setOctave (int &, int &, int(&foo)[12])
 
bool arpeggioTest (Chord *chord)
 
bool glissandotest (Chord *)
 
bool findNoteSymbol (Note *, QString &)
 
void buildGlissandoList (int strack, int etrack)
 
void writeStringInstruction (int &, QString stringarr[10])
 
void findFingerAndStringno (Note *note, int &, int &, QString(&finger)[5], QString(&strng)[10])
 
void writeLilyHeader ()
 
void writeLilyMacros ()
 
void writePageFormat ()
 
void writeScoreTitles ()
 
void initJumpOrMarkerLMs ()
 
void resetJumpOrMarkerLM (struct jumpOrMarkerLM &mlm)
 
void removeJumpOrMarkerLM (int)
 
void preserveJumpOrMarker (Element *, int, bool)
 
void printJumpOrMarker (int mnum, bool start)
 
void anchortest ()
 
void voltatest ()
 
void jumptest ()
 
void storeAnchor (struct InstructionAnchor)
 
void initAnchors ()
 
void removeAnchor (int)
 
void resetAnchor (struct InstructionAnchor &ank)
 
bool findMatchInMeasure (int, Staff *, Measure *, int, int, bool)
 
bool findMatchInPart (int, Staff *, Score *, int, int, bool)
 
void jumpAtMeasureStop (Measure *)
 
void findMarkerAtMeasureStart (Measure *)
 
void writeMeasuRestNum ()
 
void writeTremolo (Chord *)
 
void writeSymbol (QString)
 
void tempoText (TempoText *)
 
void words (Text *)
 
void hairpin (Hairpin *hp, int tick)
 
void ottava (Ottava *ot, int tick)
 
void pedal (Pedal *pd, int tick)
 
void dynamic (Dynamic *, int)
 
void textLine (Element *, int, bool)
 
void findTextProperties (Text *, QString &, int &)
 
void buildInstructionListPart (int strack, int etrack)
 
void buildInstructionList (Measure *m, int strack, int etrack)
 
void handleElement (Element *el)
 
void handlePreInstruction (Element *el)
 
void instructionJump (Jump *)
 
void instructionMarker (Marker *)
 
QString primitiveJump (Jump *)
 
QString primitiveMarker (Marker *)
 
int checkJumpOrMarker (int, bool, Element *&)
 
void writeCombinedMarker (int, Element *)
 
QString flatInInstrName (QString)
 
void indent ()
 
void indentF ()
 
int getLen (int ticks, int *dots)
 
void writeLen (int)
 
void writeChordLen (int ticks)
 
QString tpc2name (int tpc)
 
QString tpc2purename (int tpc)
 
void writeScore ()
 
void stemDir (Chord *)
 
void writeVoiceMeasure (MeasureBase *, Staff *, int, int)
 
void writeKeySig (int)
 
void writeTimeSig (TimeSig *)
 
void writeClef (int)
 
void writeChord (Chord *, bool)
 
void writeRest (int, int)
 
void findVolta ()
 
void findStartRepNoBarline (int &i, Measure *)
 
void writeBarline (Measure *)
 
int voltaCheckBar (Measure *, int)
 
void writeVolta (int, int)
 
void findTuplets (ChordRest *)
 
void writeArticulation (ChordRest *)
 
void writeScoreBlock ()
 
void checkSlur (Chord *, bool)
 
void doSlurStart (Chord *, bool)
 
void doSlurStop (Chord *)
 
void initBrackets ()
 
void brackRegister (int, int, int, bool, bool)
 
void findBrackets ()
 

Private Attributes

Scorescore
 
QFile f
 
QTextStream os
 
int level
 
int curTicks
 
MScore::Direction stemDirection
 
int indx
 
bool partial
 
int timedenom
 
int z1
 
int z2
 
int z3
 
int z4
 
int barlen
 
int wholemeasurerest
 
QString wholemeasuretext
 
bool pickup
 
bool rehearsalnumbers
 
bool donefirst
 
bool graceswitch
 
bool gracebeam
 
int gracecount
 
int prevpitch
 
int staffpitch
 
int chordpitch
 
int measurenumber
 
int lastind
 
int taktnr
 
int staffInd
 
bool repeatactive
 
bool firstalt
 
bool secondalt
 
struct voltareg voltarray [255]
 
int tupletcount
 
bool pianostaff
 
bool slur
 
const Slurslurre [MAX_SLURS]
 
bool started [MAX_SLURS]
 
int phraseslur
 
int slurstack
 
const char * relativ
 
const char * staffrelativ
 
bool voiceActive [VOICES]
 
int prevElTick
 
bool ottvaswitch
 
bool jumpswitch
 
char privateRehearsalMark
 
struct lybrackets lybracks [BRACKSTAVES]
 
struct staffnameinfo staffname [32]
 
QString cleannote
 
QString prevnote
 
int nextAnchor
 
struct InstructionAnchor anker
 
struct InstructionAnchor anchors [1024]
 
int glisscount
 
struct glisstablelem glisstable [99]
 
QString voicebuffer
 
QTextStream out
 
QString scorebuffer
 
QTextStream scorout
 
bool nochord
 
int chordcount
 
struct chordData thisHarmony
 
struct chordData prevHarmony
 
struct chordPost cp
 
struct chordPostchordHead
 
struct chordPostchordThis
 
struct lyricsRecordthisLyrics
 
struct lyricsRecordheadOfLyrics
 
struct lyricsRecordtailOfLyrics
 
int lastJumpOrMarker
 
struct jumpOrMarkerLM jumpOrMarkerList [100]
 
bool textspannerdown
 
bool textspanswitch
 

Member Enumeration Documentation

◆ voltatype

Enumerator
startending 
endending 
startrepeat 
endrepeat 
bothrepeat 
doublebar 
brokenbar 
endbar 
none 

Constructor & Destructor Documentation

◆ ExportLy()

Ms::ExportLy::ExportLy ( Score s)
inline

Member Function Documentation

◆ anchortest()

void Ms::ExportLy::anchortest ( )
private

◆ arpeggioTest()

bool Ms::ExportLy::arpeggioTest ( Chord chord)
private

◆ brackRegister()

void Ms::ExportLy::brackRegister ( int  brnumber,
int  bratype,
int  staffnr,
bool  start,
bool  end 
)
private

◆ bracktest()

void Ms::ExportLy::bracktest ( )
private

◆ buildGlissandoList()

void Ms::ExportLy::buildGlissandoList ( int  strack,
int  etrack 
)
private

◆ buildInstructionList()

void Ms::ExportLy::buildInstructionList ( Measure m,
int  strack,
int  etrack 
)
private

◆ buildInstructionListPart()

void Ms::ExportLy::buildInstructionListPart ( int  strack,
int  etrack 
)
private

◆ checkJumpOrMarker()

int Ms::ExportLy::checkJumpOrMarker ( int  mnum,
bool  start,
Element *&  moj 
)
private

◆ checkSlur()

void Ms::ExportLy::checkSlur ( Chord chord,
bool  nextisrest 
)
private

◆ chord2Name()

QString Ms::ExportLy::chord2Name ( int  ch)
private

◆ chordInsertList()

void Ms::ExportLy::chordInsertList ( chordPost newchord)
private

◆ chordName()

void Ms::ExportLy::chordName ( struct InstructionAnchor  chordanchor)
private

◆ cleanupChordList()

void Ms::ExportLy::cleanupChordList ( )
private

◆ cleanupLyrics()

void Ms::ExportLy::cleanupLyrics ( )
private

◆ connectLyricsToStaff()

void Ms::ExportLy::connectLyricsToStaff ( )
private

◆ doSlurStart()

void Ms::ExportLy::doSlurStart ( Chord chord,
bool  nextisrest 
)
private

◆ doSlurStop()

void Ms::ExportLy::doSlurStop ( Chord chord)
private

◆ dynamic()

void Ms::ExportLy::dynamic ( Dynamic dyn,
int  nop 
)
private

◆ findBrackets()

void Ms::ExportLy::findBrackets ( )
private

◆ findFingerAndStringno()

void Ms::ExportLy::findFingerAndStringno ( Note note,
int &  fingix,
int &  stringix,
QString(&)  finger[5],
QString(&)  strng[10] 
)
private

◆ findGraceNotes()

void Ms::ExportLy::findGraceNotes ( Note note,
bool &  chordstart,
int  streng 
)
private

◆ findLyrics()

void Ms::ExportLy::findLyrics ( )
private

◆ findMarkerAtMeasureStart()

void Ms::ExportLy::findMarkerAtMeasureStart ( Measure m)
private

◆ findMatchInMeasure()

bool Ms::ExportLy::findMatchInMeasure ( int  tick,
Staff stf,
Measure m,
int  strack,
int  etrack,
bool  rehearsalmark 
)
private

◆ findMatchInPart()

bool Ms::ExportLy::findMatchInPart ( int  tick,
Staff stav,
Score sc,
int  starttrack,
int  endtrack,
bool  rehearsalmark 
)
private

◆ findNoteSymbol()

bool Ms::ExportLy::findNoteSymbol ( Note n,
QString &  symbolname 
)
private

◆ findSlur()

int Ms::ExportLy::findSlur ( const Slur s) const
private

◆ findStartRepNoBarline()

void Ms::ExportLy::findStartRepNoBarline ( int &  i,
Measure m 
)
private

◆ findTextProperties()

void Ms::ExportLy::findTextProperties ( Text tekst,
QString &  tekststyle,
int &  fontsize 
)
private

◆ findTuplets()

void Ms::ExportLy::findTuplets ( ChordRest cr)
private

◆ findVolta()

void Ms::ExportLy::findVolta ( )
private

◆ flatInInstrName()

QString Ms::ExportLy::flatInInstrName ( QString  name)
private

◆ getLen()

int Ms::ExportLy::getLen ( int  ticks,
int *  dots 
)
private

◆ glissandotest()

bool Ms::ExportLy::glissandotest ( Chord chord)
private

◆ hairpin()

void Ms::ExportLy::hairpin ( Hairpin hp,
int  tick 
)
private

◆ handleElement()

void Ms::ExportLy::handleElement ( Element el)
private

◆ handlePreInstruction()

void Ms::ExportLy::handlePreInstruction ( Element el)
private

◆ indent()

void Ms::ExportLy::indent ( )
private

◆ indentF()

void Ms::ExportLy::indentF ( )
private

◆ initAnchors()

void Ms::ExportLy::initAnchors ( )
private

◆ initBrackets()

void Ms::ExportLy::initBrackets ( )
private

◆ initJumpOrMarkerLMs()

void Ms::ExportLy::initJumpOrMarkerLMs ( )
private

◆ instructionJump()

void Ms::ExportLy::instructionJump ( Jump jp)
private

◆ instructionMarker()

void Ms::ExportLy::instructionMarker ( Marker m)
private

◆ jumpAtMeasureStop()

void Ms::ExportLy::jumpAtMeasureStop ( Measure m)
private

◆ jumptest()

void Ms::ExportLy::jumptest ( )
private

◆ newLyricsRecord()

void Ms::ExportLy::newLyricsRecord ( )
private

◆ ottava()

void Ms::ExportLy::ottava ( Ottava ot,
int  tick 
)
private

◆ pedal()

void Ms::ExportLy::pedal ( Pedal pd,
int  tick 
)
private

◆ preserveJumpOrMarker()

void Ms::ExportLy::preserveJumpOrMarker ( Element dir,
int  mnum,
bool  start 
)
private

◆ primitiveJump()

QString Ms::ExportLy::primitiveJump ( Jump jp)
private

◆ primitiveMarker()

QString Ms::ExportLy::primitiveMarker ( Marker m)
private

◆ printChordList()

void Ms::ExportLy::printChordList ( )
private

◆ printJumpOrMarker()

void Ms::ExportLy::printJumpOrMarker ( int  mnum,
bool  start 
)
private

◆ removeAnchor()

void Ms::ExportLy::removeAnchor ( int  ankind)
private

◆ removeJumpOrMarkerLM()

void Ms::ExportLy::removeJumpOrMarkerLM ( int  markerind)
private

◆ resetAnchor()

void Ms::ExportLy::resetAnchor ( struct InstructionAnchor ank)
private

◆ resetChordData()

void Ms::ExportLy::resetChordData ( struct chordData CD)
private

◆ resetJumpOrMarkerLM()

void Ms::ExportLy::resetJumpOrMarkerLM ( struct jumpOrMarkerLM mlm)
private

◆ setOctave()

void Ms::ExportLy::setOctave ( int &  purepitch,
int &  pitchidx,
int(&)  foo[12] 
)
private

◆ stemDir()

void Ms::ExportLy::stemDir ( Chord chord)
private

◆ storeAnchor()

void Ms::ExportLy::storeAnchor ( struct InstructionAnchor  a)
private

◆ storeChord()

void Ms::ExportLy::storeChord ( struct InstructionAnchor  chAnk)
private

◆ tempoText()

void Ms::ExportLy::tempoText ( TempoText text)
private

◆ textLine()

void Ms::ExportLy::textLine ( Element instruction,
int  tick,
bool  pre 
)
private

◆ tpc2name()

QString Ms::ExportLy::tpc2name ( int  tpc)
private

◆ tpc2purename()

QString Ms::ExportLy::tpc2purename ( int  tpc)
private

◆ voltaCheckBar()

int Ms::ExportLy::voltaCheckBar ( Measure meas,
int  i 
)
private

◆ voltatest()

void Ms::ExportLy::voltatest ( )
private

◆ words()

void Ms::ExportLy::words ( Text text)
private

◆ write()

bool Ms::ExportLy::write ( const QString &  name)

◆ writeArticulation()

void Ms::ExportLy::writeArticulation ( ChordRest c)
private

◆ writeBarline()

void Ms::ExportLy::writeBarline ( Measure )
private

◆ writeChord()

void Ms::ExportLy::writeChord ( Chord c,
bool  nextisrest 
)
private

◆ writeChordLen()

void Ms::ExportLy::writeChordLen ( int  ticks)
private

◆ writeClef()

void Ms::ExportLy::writeClef ( int  clef)
private

◆ writeCombinedMarker()

void Ms::ExportLy::writeCombinedMarker ( int  foundJoM,
Element elm 
)
private

◆ writeFingering()

void Ms::ExportLy::writeFingering ( int &  fingr,
QString  fingering[5] 
)
private

◆ writeKeySig()

void Ms::ExportLy::writeKeySig ( int  st)
private

◆ writeLen()

void Ms::ExportLy::writeLen ( int  ticks)
private

◆ writeLilyHeader()

void Ms::ExportLy::writeLilyHeader ( )
private

◆ writeLilyMacros()

void Ms::ExportLy::writeLilyMacros ( )
private

◆ writeLyrics()

void Ms::ExportLy::writeLyrics ( )
private

◆ writeMeasuRestNum()

void Ms::ExportLy::writeMeasuRestNum ( )
private

◆ writePageFormat()

void Ms::ExportLy::writePageFormat ( )
private

◆ writeRest()

void Ms::ExportLy::writeRest ( int  l,
int  type 
)
private

◆ writeScore()

void Ms::ExportLy::writeScore ( )
private

◆ writeScoreBlock()

void Ms::ExportLy::writeScoreBlock ( )
private

◆ writeScoreTitles()

void Ms::ExportLy::writeScoreTitles ( )
private

◆ writeStringInstruction()

void Ms::ExportLy::writeStringInstruction ( int &  strgix,
QString  stringarr[10] 
)
private

◆ writeSymbol()

void Ms::ExportLy::writeSymbol ( QString  name)
private

◆ writeTimeSig()

void Ms::ExportLy::writeTimeSig ( TimeSig sig)
private

◆ writeTremolo()

void Ms::ExportLy::writeTremolo ( Chord chord)
private

◆ writeVoiceMeasure()

void Ms::ExportLy::writeVoiceMeasure ( MeasureBase mb,
Staff staff,
int  staffInd,
int  voice 
)
private

◆ writeVolta()

void Ms::ExportLy::writeVolta ( int  measurenumber,
int  lastind 
)
private

Member Data Documentation

◆ anchors

struct InstructionAnchor Ms::ExportLy::anchors[1024]
private

◆ anker

struct InstructionAnchor Ms::ExportLy::anker
private

◆ barlen

int Ms::ExportLy::barlen
private

◆ chordcount

int Ms::ExportLy::chordcount
private

◆ chordHead

struct chordPost* Ms::ExportLy::chordHead
private

◆ chordpitch

int Ms::ExportLy::chordpitch
private

◆ chordThis

struct chordPost* Ms::ExportLy::chordThis
private

◆ cleannote

QString Ms::ExportLy::cleannote
private

◆ cp

struct chordPost Ms::ExportLy::cp
private

◆ curTicks

int Ms::ExportLy::curTicks
private

◆ donefirst

bool Ms::ExportLy::donefirst
private

◆ f

QFile Ms::ExportLy::f
private

◆ firstalt

bool Ms::ExportLy::firstalt
private

◆ glisscount

int Ms::ExportLy::glisscount
private

◆ glisstable

struct glisstablelem Ms::ExportLy::glisstable[99]
private

◆ gracebeam

bool Ms::ExportLy::gracebeam
private

◆ gracecount

int Ms::ExportLy::gracecount
private

◆ graceswitch

bool Ms::ExportLy::graceswitch
private

◆ headOfLyrics

struct lyricsRecord* Ms::ExportLy::headOfLyrics
private

◆ indx

int Ms::ExportLy::indx
private

◆ jumpOrMarkerList

struct jumpOrMarkerLM Ms::ExportLy::jumpOrMarkerList[100]
private

◆ jumpswitch

bool Ms::ExportLy::jumpswitch
private

◆ lastind

int Ms::ExportLy::lastind
private

◆ lastJumpOrMarker

int Ms::ExportLy::lastJumpOrMarker
private

◆ level

int Ms::ExportLy::level
private

◆ lybracks

struct lybrackets Ms::ExportLy::lybracks[BRACKSTAVES]
private

◆ measurenumber

int Ms::ExportLy::measurenumber
private

◆ nextAnchor

int Ms::ExportLy::nextAnchor
private

◆ nochord

bool Ms::ExportLy::nochord
private

◆ os

QTextStream Ms::ExportLy::os
private

◆ ottvaswitch

bool Ms::ExportLy::ottvaswitch
private

◆ out

QTextStream Ms::ExportLy::out
private

◆ partial

bool Ms::ExportLy::partial
private

◆ phraseslur

int Ms::ExportLy::phraseslur
private

◆ pianostaff

bool Ms::ExportLy::pianostaff
private

◆ pickup

bool Ms::ExportLy::pickup
private

◆ prevElTick

int Ms::ExportLy::prevElTick
private

◆ prevHarmony

struct chordData Ms::ExportLy::prevHarmony
private

◆ prevnote

QString Ms::ExportLy::prevnote
private

◆ prevpitch

int Ms::ExportLy::prevpitch
private

◆ privateRehearsalMark

char Ms::ExportLy::privateRehearsalMark
private

◆ rehearsalnumbers

bool Ms::ExportLy::rehearsalnumbers
private

◆ relativ

const char* Ms::ExportLy::relativ
private

◆ repeatactive

bool Ms::ExportLy::repeatactive
private

◆ score

Score* Ms::ExportLy::score
private

◆ scorebuffer

QString Ms::ExportLy::scorebuffer
private

◆ scorout

QTextStream Ms::ExportLy::scorout
private

◆ secondalt

bool Ms::ExportLy::secondalt
private

◆ slur

bool Ms::ExportLy::slur
private

◆ slurre

const Slur* Ms::ExportLy::slurre[MAX_SLURS]
private

◆ slurstack

int Ms::ExportLy::slurstack
private

◆ staffInd

int Ms::ExportLy::staffInd
private

◆ staffname

struct staffnameinfo Ms::ExportLy::staffname[32]
private

◆ staffpitch

int Ms::ExportLy::staffpitch
private

◆ staffrelativ

const char * Ms::ExportLy::staffrelativ
private

◆ started

bool Ms::ExportLy::started[MAX_SLURS]
private

◆ stemDirection

MScore::Direction Ms::ExportLy::stemDirection
private

◆ tailOfLyrics

struct lyricsRecord* Ms::ExportLy::tailOfLyrics
private

◆ taktnr

int Ms::ExportLy::taktnr
private

◆ textspannerdown

bool Ms::ExportLy::textspannerdown
private

◆ textspanswitch

bool Ms::ExportLy::textspanswitch
private

◆ thisHarmony

struct chordData Ms::ExportLy::thisHarmony
private

◆ thisLyrics

struct lyricsRecord* Ms::ExportLy::thisLyrics
private

◆ timedenom

int Ms::ExportLy::timedenom
private

◆ tupletcount

int Ms::ExportLy::tupletcount
private

◆ voiceActive

bool Ms::ExportLy::voiceActive[VOICES]
private

◆ voicebuffer

QString Ms::ExportLy::voicebuffer
private

◆ voltarray

struct voltareg Ms::ExportLy::voltarray[255]
private

◆ wholemeasurerest

int Ms::ExportLy::wholemeasurerest
private

◆ wholemeasuretext

QString Ms::ExportLy::wholemeasuretext
private

◆ z1

int Ms::ExportLy::z1
private

◆ z2

int Ms::ExportLy::z2
private

◆ z3

int Ms::ExportLy::z3
private

◆ z4

int Ms::ExportLy::z4
private

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