Go to the documentation of this file.
8 #ifndef LILYPONDEXPORT_H_
9 #define LILYPONDEXPORT_H_
11 #include <QTextStream>
@ RepeatClose
Definition: barline.h:25
@ PercussionHigh
Definition: clef.h:40
void exportStaffVoices(CAStaff *staff)
Definition: lilypondexport.cpp:924
CAVoice * curVoice()
Definition: lilypondexport.h:35
@ Crescendo
Definition: mark.h:23
void setIndentLevel(int level)
Definition: lilypondexport.h:92
const QString clefTypeToLilyPond(CAClef::CAClefType type, int c1, int offset)
Definition: lilypondexport.cpp:608
const QList< CAVoice * > & voiceList()
Definition: staff.h:35
Ritardando and Accellerando marks.
Definition: ritardando.h:15
@ PrallPrall
Definition: articulation.h:36
@ Staff
Definition: context.h:23
Represents a rest in the score.
Definition: rest.h:15
int number()
Definition: tuplet.h:27
bool isLastInTuplet()
Definition: playable.h:36
const QString text()
Definition: dynamic.h:31
@ Portato
Definition: articulation.h:24
void voltaFunction(void)
Definition: lilypondexport.cpp:1190
@ Mark
Definition: muselement.h:37
@ MidiNote
Definition: muselement.h:27
@ Trill
Definition: articulation.h:33
@ Sixteenth
Definition: playablelength.h:25
CASlur * phrasingSlurStart()
Definition: note.h:51
Note articulation marks.
Definition: articulation.h:14
@ Pedal
Definition: mark.h:24
CABarlineType
Definition: barline.h:19
CADocument * _curDocument
Definition: lilypondexport.h:101
int actualNumber()
Definition: tuplet.h:30
CASlur * slurEnd()
Definition: note.h:50
Represents a note in the score.
Definition: note.h:18
@ Eighth
Definition: playablelength.h:24
@ UpBow
Definition: articulation.h:26
@ DownBow
Definition: articulation.h:27
bool _voltaBracketFinishAtBar
Definition: lilypondexport.h:113
@ Tuplet
Definition: muselement.h:33
Class which represents the current document.
Definition: document.h:19
@ Clef
Definition: muselement.h:29
Class which represents a voice in the staff.
Definition: voice.h:23
@ RepeatCloseOpen
Definition: barline.h:26
bool isLastInChord()
Definition: note.cpp:179
@ Barline
Definition: muselement.h:28
void indentLess()
Definition: lilypondexport.h:82
@ End
Definition: barline.h:23
Represents a time signature in the staff.
Definition: timesignature.h:18
void setCurVoice(CAVoice *voice)
Definition: lilypondexport.h:87
@ RehersalMark
Definition: mark.h:27
@ Breve
Definition: playablelength.h:20
void setCurSheet(CASheet *sheet)
Definition: lilypondexport.h:88
bool _timeSignatureFound
Definition: lilypondexport.h:116
QString markupString(QString)
Definition: lilypondexport.cpp:907
const QList< CAMark * > markList()
Definition: muselement.h:70
bool _voltaFunctionWritten
Definition: lilypondexport.h:111
Playable instances of music elements.
Definition: playable.h:18
const QString name()
Definition: context.h:29
bool _voltaBracketFinishAtRepeat
Definition: lilypondexport.h:112
@ Breath
Definition: articulation.h:25
@ Prall
Definition: articulation.h:34
@ Flageolet
Definition: articulation.h:28
@ SixtyFourth
Definition: playablelength.h:27
@ DownMordent
Definition: articulation.h:41
LilyPond export filter This class is used to export the document or parts of the document to LilyPond...
Definition: lilypondexport.h:27
@ Mordent
Definition: articulation.h:35
@ Normal
Definition: rest.h:19
void indent()
Definition: lilypondexport.cpp:1164
bool melismaStart()
Definition: syllable.h:27
const QString playableLengthToLilyPond(CAPlayableLength length)
Definition: lilypondexport.cpp:664
@ UpPrall
Definition: articulation.h:38
@ Tempo
Definition: mark.h:20
void spellNumbers(QString &s)
Definition: lilypondexport.cpp:1176
int bpm()
Definition: tempo.h:22
@ Volta
Definition: repeatmark.h:19
void exportLyricsContextBlock(CALyricsContext *lc)
Definition: lilypondexport.cpp:492
void setCurContext(CAContext *context)
Definition: lilypondexport.h:89
@ DownPrall
Definition: articulation.h:39
int offset()
Definition: clef.h:59
void scanForRepeats(CAStaff *staff)
Definition: lilypondexport.cpp:876
CAClefType
Definition: clef.h:36
int _curContextIndex
Definition: lilypondexport.h:102
void exportLyricsContextImpl(CALyricsContext *lc)
Definition: lilypondexport.cpp:511
static CADynamicText dynamicTextFromString(const QString t)
Definition: dynamic.cpp:70
static const QString _regExpVoltaRepeat
Definition: lilypondexport.h:114
CASheet * curSheet()
Definition: lilypondexport.h:36
void indentMore()
Definition: lilypondexport.h:81
CATuplet * tuplet()
Definition: playable.h:28
static const QString repeatMarkTypeToString(CARepeatMarkType t)
Definition: repeatmark.cpp:46
const QString syllableToLilyPond(CASyllable *s)
Definition: lilypondexport.cpp:782
@ RepeatOpen
Definition: barline.h:24
const CARitardandoType ritardandoType()
Definition: ritardando.h:30
@ Hidden
Definition: rest.h:20
@ RepeatMark
Definition: mark.h:29
void exportSheetImpl(CASheet *sheet)
Definition: lilypondexport.cpp:804
@ Accent
Definition: articulation.h:18
@ TimeSignature
Definition: muselement.h:30
const QString barlineTypeToLilyPond(CABarline::CABarlineType type)
Definition: lilypondexport.cpp:752
void exportVoiceImpl(CAVoice *voice)
Definition: lilypondexport.cpp:65
CAMarkType markType()
Definition: mark.h:45
@ Turn
Definition: articulation.h:31
@ Undefined
Definition: muselement.h:24
const CAMusicLength musicLength()
Definition: playablelength.h:34
@ Fingering
Definition: mark.h:31
int curContextIndex()
Definition: lilypondexport.h:39
CAGender
Definition: diatonickey.h:17
void exportMarksBeforeElement(CAMusElement *)
Definition: lilypondexport.cpp:440
Finger marks.
Definition: fingering.h:16
@ Espressivo
Definition: articulation.h:21
virtual int timeLength() const
Definition: muselement.h:53
CASlur * phrasingSlurEnd()
Definition: note.h:52
@ Articulation
Definition: mark.h:30
Absolute dynamic marks.
Definition: dynamic.h:16
@ Quarter
Definition: playablelength.h:23
@ LinePrall
Definition: articulation.h:44
void exportPlayable(CAPlayable *elt)
Definition: lilypondexport.cpp:171
@ Ritardando
Definition: mark.h:21
static const QString barlineTypeToString(CABarlineType)
Definition: barline.cpp:65
void setNoteName(const int noteName)
Definition: diatonicpitch.h:53
QTextStream * _out
Definition: lilypondexport.h:97
@ HundredTwentyEighth
Definition: playablelength.h:28
CAContext * _curContext
Definition: lilypondexport.h:100
const int noteName() const
Definition: diatonicpitch.h:50
Musical note pitch.
Definition: diatonicpitch.h:16
int _curStreamTime
Definition: lilypondexport.h:108
CASlur * tieStart()
Definition: note.h:47
CAClefType clefType()
Definition: clef.h:51
@ Syllable
Definition: muselement.h:34
Tempo mark.
Definition: tempo.h:14
CAVoice * _curVoice
Definition: lilypondexport.h:98
@ ThirtySecond
Definition: playablelength.h:26
int curIndentLevel()
Definition: lilypondexport.h:40
CADiatonicPitch _lastNotePitch
Definition: lilypondexport.h:106
CAVoice * associatedVoice()
Definition: lyricscontext.h:41
@ FunctionMark
Definition: muselement.h:35
@ Tenuto
Definition: articulation.h:23
@ Single
Definition: barline.h:21
CAContext * curContext()
Definition: lilypondexport.h:38
@ KeySignature
Definition: muselement.h:31
@ Minor
Definition: diatonickey.h:19
const QString restTypeToLilyPond(CARest::CARestType type)
Definition: lilypondexport.cpp:734
bool isPartOfChord()
Definition: note.cpp:149
void exportScoreBlock(CASheet *sheet)
Definition: lilypondexport.cpp:985
const QList< CAMusElement * > & musElementList()
Definition: voice.h:47
@ ReverseTurn
Definition: articulation.h:32
@ Undefined
Definition: articulation.h:17
@ Double
Definition: barline.h:22
CADocument * curDocument()
Definition: lilypondexport.h:37
bool isFirstInTuplet()
Definition: playable.h:35
bool isFirstInChord()
Definition: note.cpp:166
@ Ritardando
Definition: ritardando.h:18
@ FunctionMarkContext
Definition: context.h:25
CABarlineType barlineType()
Definition: barline.h:36
Represents a staff in the sheet.
Definition: staff.h:25
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CASlur * slurStart()
Definition: note.h:49
const QString diatonicPitchToLilyPond(CADiatonicPitch p)
Definition: lilypondexport.cpp:707
CAPlayableLength _lastPlayableLength
Definition: lilypondexport.h:107
@ Undefined
Definition: barline.h:20
const CAGender gender()
Definition: diatonickey.h:43
@ Rest
Definition: muselement.h:26
const int c1()
Definition: clef.h:52
const int accs() const
Definition: diatonicpitch.h:51
int _curIndentLevel
Definition: lilypondexport.h:103
void exportNoteMarks(CANote *)
Definition: lilypondexport.cpp:405
@ Half
Definition: playablelength.h:22
bool forceAccidentals()
Definition: note.h:71
CADiatonicPitch diatonicPitch()
Definition: diatonickey.h:42
Musical length of notes and rests.
Definition: playablelength.h:16
static const int playableLengthToTimeLength(CAPlayableLength length)
Definition: playablelength.cpp:107
const int dotted()
Definition: playablelength.h:35
@ Custom
Definition: dynamic.h:22
Represents a key signature sign in the staff.
Definition: keysignature.h:19
Lyrics under the note.
Definition: syllable.h:19
const QString relativePitchToString(CANote *note, CADiatonicPitch prevPitch)
Definition: lilypondexport.h:70
void voiceVariableName(QString &name, int staffNum, int voiceNum)
Definition: lilypondexport.cpp:954
void setCurContextIndex(int c)
Definition: lilypondexport.h:90
const QList< CAContext * > & contextList()
Definition: sheet.h:29
void doAnacrusisCheck(CATimeSignature *time)
Definition: lilypondexport.cpp:521
Repeat marks like segno, volta, coda etc.
Definition: repeatmark.h:15
@ Undefined
Definition: playablelength.h:19
QList< CANote * > getChord()
Definition: note.cpp:197
@ InstrumentChange
Definition: mark.h:25
@ PercussionLow
Definition: clef.h:41
CAFingerNumber
Definition: fingering.h:18
@ PrallUp
Definition: articulation.h:43
const QString diatonicKeyGenderToLilyPond(CADiatonicKey::CAGender gender)
Definition: lilypondexport.cpp:652
@ Note
Definition: muselement.h:25
int beats()
Definition: timesignature.h:34
One stanza line of lyrics.
Definition: lyricscontext.h:19
@ FiguredBassMark
Definition: muselement.h:36
virtual int timeStart() const
Definition: muselement.h:51
CAStaff * staff()
Definition: voice.h:29
QString escapeWeirdChars(QString)
Definition: lilypondexport.cpp:914
CADiatonicKey diatonicKey()
Definition: keysignature.h:50
void writeDocumentHeader()
Definition: lilypondexport.cpp:857
CADiatonicPitch & diatonicPitch()
Definition: note.h:35
@ Major
Definition: diatonickey.h:18
Line of music elements in the sheet.
Definition: context.h:16
@ Undefined
Definition: rest.h:18
@ Staccato
Definition: articulation.h:22
@ Stopped
Definition: articulation.h:30
@ FiguredBassContext
Definition: context.h:26
QList< CAMusElement * > & barlineRefs()
Definition: staff.h:62
CASheet * _curSheet
Definition: lilypondexport.h:99
CARestType
Definition: rest.h:17
void setCurDocument(CADocument *document)
Definition: lilypondexport.h:91
@ LyricsContext
Definition: context.h:24
Music element which represents a barline in the score.
Definition: barline.h:17
Text sign.
Definition: text.h:14
Marks that depend on other music elements.
Definition: mark.h:15
@ Undefined
Definition: mark.h:18
@ UpMordent
Definition: articulation.h:40
@ Whole
Definition: playablelength.h:21
@ PrallMordent
Definition: articulation.h:37
static const QString _regExpVoltaBar
Definition: lilypondexport.h:115
Represents a single sheet of paper in the document.
Definition: sheet.h:22
@ Dotted
Definition: barline.h:27
@ Tab
Definition: clef.h:42
const QString name()
Definition: voice.h:101
@ Marcato
Definition: articulation.h:19
CADocument * document()
Definition: sheet.h:43
int beat()
Definition: timesignature.h:37
void exportMarksAfterElement(CAMusElement *)
Definition: lilypondexport.cpp:293
@ Open
Definition: articulation.h:29
@ Fermata
Definition: mark.h:28
@ Text
Definition: mark.h:19
CALilyPondExport(QTextStream *out=0)
Definition: lilypondexport.cpp:50
const QList< CASyllable * > & syllableList()
Definition: lyricscontext.h:34
QTextStream & out()
Definition: export.h:71
Base class for export filters.
Definition: export.h:22
@ Dynamic
Definition: mark.h:22
CARestType restType()
Definition: rest.h:28
CAMusElementType musElementType()
Definition: muselement.h:46
bool hyphenStart()
Definition: syllable.h:25
CADiatonicPitch writeRelativeIntro()
Definition: lilypondexport.cpp:557
CAPlayableLength beat()
Definition: tempo.h:24
@ BookMark
Definition: mark.h:26
QString text()
Definition: syllable.h:29
CAPlayableLength & playableLength()
Definition: playable.h:23
@ Slur
Definition: muselement.h:32
@ Staccatissimo
Definition: articulation.h:20
@ PrallDown
Definition: articulation.h:42