Canorus  0.0
muselementfactory.h
Go to the documentation of this file.
1 
10 #ifndef MUSELEMENTFACTORY_H_
11 #define MUSELEMENTFACTORY_H_
12 #include "score/barline.h"
13 
14 #include "score/staff.h"
15 #include "score/muselement.h"
16 #include "score/clef.h"
17 #include "score/keysignature.h"
18 #include "score/timesignature.h"
19 #include "score/voice.h"
20 #include "score/rest.h"
21 #include "score/slur.h"
22 #include "score/figuredbassmark.h"
23 #include "score/functionmark.h"
24 #include "score/lyricscontext.h"
25 #include "score/syllable.h"
26 #include "score/mark.h"
27 #include "score/articulation.h"
28 #include "score/fermata.h"
29 #include "score/tempo.h"
30 #include "score/ritardando.h"
31 #include "score/crescendo.h"
32 #include "score/repeatmark.h"
33 #include "score/fingering.h"
34 #include "score/playablelength.h"
35 #include "score/diatonickey.h"
36 
37 class CAMusElement;
38 
40 public:
43 
45 
46  void removeMusElem( bool bReallyRemove = false );
47 
48  void configureMusElem( CAMusElement &roMusElement );
49 
50  inline CAMusElement *musElement() { return mpoMusElement; };
51  inline void setMusElement( CAMusElement *elt ) { mpoMusElement = elt; }
52 
54  inline void emptyMusElem() { mpoMusElement = mpoEmpty; }
55 
56  bool configureClef( CAStaff *staff,
57  CAMusElement *right );
58 
59  bool configureKeySignature( CAStaff *staff,
60  CAMusElement *right );
61 
62  bool configureTimeSignature( CAStaff *staff,
63  CAMusElement *right );
64 
65  bool configureBarline( CAStaff *staff,
66  CAMusElement *right );
67 
68  bool configureRest( CAVoice *voice,
69  CAMusElement *right );
70 
71 
72  bool configureNote( int pitch,
73  CAVoice *voice,
74  CAMusElement *right,
75  bool addToChord
76  );
77 
78  bool configureTuplet( QList<CAPlayable*> listOfNotes );
79 
80  bool configureSlur( CAStaff *staff,
81  CANote *noteStart, CANote *noteEnd );
82 
83  bool configureMark( CAMusElement *elt );
84 
86 
88  int timeStart, int timeLength );
89 
92 
94 
97 
98  void addPlayableDotted( int add, CAPlayableLength curLength );
99 
101 
103  { _eNoteStemDirection = eDir; }
104 
105  inline int noteAccs() { return _iNoteAccs; };
106 
107  inline void setNoteAccs( int iNoteAccs )
108  { _iNoteAccs = iNoteAccs; };
109 
110  inline void addNoteAccs( int iAdd )
111  { if (_iNoteAccs+iAdd < 3) _iNoteAccs+= iAdd; };
112 
113  inline void subNoteAccs( int iSub )
114  { if (_iNoteAccs-iSub > -3) _iNoteAccs-= iSub; };
115 
117  inline void setDiatonicKeyNumberOfAccs(int accs) { _diatonicKeyNumberOfAccs = accs; }
120 
121  inline int noteExtraAccs() { return _iNoteExtraAccs; };
122 
123  inline void setNoteExtraAccs( int iNoteExtraAccs )
124  { _iNoteExtraAccs = iNoteExtraAccs; };
125 
126  inline void addNoteExtraAccs( int iAdd )
127  { _iNoteExtraAccs += iAdd; };
128 
129  inline void subNoteExtraAccs( int iSub )
130  { _iNoteExtraAccs -= iSub; };
131 
133 
134  inline void setRestType(CARest::CARestType eType)
135  { _eRestType = eType; }
136 
137  inline int timeSigBeats() { return _iTimeSigBeats; }
138  inline void setTimeSigBeats( int iTimeSigBeats )
139  { _iTimeSigBeats = iTimeSigBeats; };
140 
141  inline int timeSigBeat() { return _iTimeSigBeat; }
142  inline void setTimeSigBeat( int iTimeSigBeat )
143  { _iTimeSigBeat = iTimeSigBeat; };
144 
146  inline void setClef( CAClef::CAPredefinedClefType eClefType )
147  { _eClef = eClefType; };
148 
149  inline int clefOffset() { return _iClefOffset; } // readable offset interval, not internal offset
150  inline void setClefOffset( int offset )
151  { _iClefOffset= offset; };
152 
155  { _eBarlineType = type; }
156 
157  inline int tupletNumber() { return _tupletNumber; }
158  inline void setTupletNumber( int number ) { _tupletNumber = number; }
159 
160  inline int tupletActualNumber() { return _tupletActualNumber; }
161  inline void setTupletActualNumber( int actualNumber ) { _tupletActualNumber = actualNumber; }
162 
164  inline void setSlurType( CASlur::CASlurType type ) { _eSlurType = type; }
165 
167  inline void setSlurStyle( CASlur::CASlurStyle style ) { _slurStyle = style; }
168 
169  inline CAMark::CAMarkType markType() { return _markType; }
170  inline void setMarkType( CAMark::CAMarkType t ) { _markType = t; }
171 
174 
175  inline int fbmNumber() { return _fbmNumber; }
176  inline void setFBMNumber( int n ) { _fbmNumber = n; }
177  inline int fbmAccs() { return _fbmAccs; }
178  inline void setFBMAccs( int n ) { _fbmAccs= n; }
179  inline bool fbmAccsVisible() { return _fbmAccsVisible; }
180  inline void setFBMAccsVisible( int n ) { _fbmAccsVisible = n; }
181 
184 
187 
190 
191  inline bool isFMFunctionMinor() { return _fmFunctionMinor; }
192  inline void setFMFunctionMinor( bool m ) { _fmFunctionMinor = m; }
193 
194  inline bool isFMTonicDegreeMinor() { return _fmTonicDegreeMinor; }
195  inline void setFMTonicDegreeMinor( bool m ) { _fmTonicDegreeMinor = m; }
196 
197  inline bool isFMChordAreaMinor() { return _fmChordAreaMinor; }
198  inline void setFMChordAreaMinor( bool m ) { _fmChordAreaMinor = m; }
199 
200  inline bool isFMEllipse() { return _fmEllipse; }
201  inline void setFMEllipse( bool e ) { _fmEllipse = e; }
202 
203  inline const QString dynamicText() { return _dynamicText; }
204  inline void setDynamicText( const QString t ) { _dynamicText = t; }
205 
206  inline const int dynamicVolume() { return _dynamicVolume; }
207  inline void setDynamicVolume( const int vol ) { _dynamicVolume = vol; }
208 
209  inline const int instrument() { return _instrument; }
210  inline void setInstrument( const int instrument ) { _instrument = instrument; }
211 
213  inline void setFermataType( const CAFermata::CAFermataType type ) { _fermataType = type; }
214 
215  inline const int tempoBpm() { return _tempoBpm; }
216  inline void setTempoBpm( const int tempoBpm ) { _tempoBpm = tempoBpm; }
217 
218  inline CAPlayableLength& tempoBeat() { return _tempoBeat; }
219  inline void setTempoBeat( CAPlayableLength& length ) { _tempoBeat = length; }
220 
223 
224  inline const int crescendoFinalVolume() { return _crescendoFinalVolume; }
225  inline void setCrescendoFinalVolume( const int v ) { _crescendoFinalVolume = v; }
226 
229 
232 
233  inline const int repeatMarkVoltaNumber() { return _repeatMarkVoltaNumber; }
234  inline void setRepeatMarkVoltaNumber( const int n ) { _repeatMarkVoltaNumber = n; }
235 
238 
239  inline const bool isFingeringOriginal() { return _fingeringOriginal; }
240  inline void setFingeringOriginal( const int o ) { _fingeringOriginal = o; }
241 private:
242  CAMusElement *mpoMusElement; // Newly created music element itself
243  CAMusElement *mpoEmpty; // An empty (dummy) element.
244 
246  // Element creation parameters //
249 
250  // Staff music elements
251  CAPlayableLength _playableLength; // Length of note/rest to be added
252  CANote::CAStemDirection _eNoteStemDirection; // Note stem direction to be inserted
253  CASlur::CASlurType _eSlurType; // Slur type to be placed
254  int _tupletNumber; // Tuplet number of notes
255  int _tupletActualNumber; // Tuplet actual number of notes
256  int _iPlayableDotted; // Number of dots to be inserted for the note/rest
257  int _iNoteExtraAccs; // Extra note accidentals for new notes which user adds/removes with +/- keys
258  int _iNoteAccs; // Note accidentals at specific coordinates updated regularily when in insert mode
259  CARest::CARestType _eRestType; // Hidden/Normal rest
260  int _diatonicKeyNumberOfAccs; // Key signature number of accidentals
261  CADiatonicKey::CAGender _diatonicKeyGender; // Major/Minor gender of the key signature
262  int _iTimeSigBeats; // Time signature number of beats to be inserted
263  int _iTimeSigBeat; // Time signature beat to be inserted
264  CAClef::CAPredefinedClefType _eClef; // Type of the clef to be inserted
265  int _iClefOffset; // Interval offset for the clef
266  CABarline::CABarlineType _eBarlineType; // Type of the barline
267  CAMark::CAMarkType _markType; // Type of the mark
268  CAArticulation::CAArticulationType _articulationType; // Type of the articulation mark
269  CASlur::CASlurStyle _slurStyle; // Style of the slur (solid, dotted)
270 
271  // Figured bass
272  int _fbmNumber; // Figured bass number
273  int _fbmAccs; // Figured bass accidentals
274  bool _fbmAccsVisible; // Are accidentals visible
275 
276  // Function Mark
278  CAFunctionMark::CAFunctionType _fmChordArea; // Chord area of the function
279  CAFunctionMark::CAFunctionType _fmTonicDegree; // Tonic degree of the function
284 
285  // Marks
286  QString _dynamicText;
299 };
300 #endif // MUSELEMENTFACTORY_H_
CAMusElementFactory::fingeringFinger
const CAFingering::CAFingerNumber fingeringFinger()
Definition: muselementfactory.h:236
CAMusElementFactory::musElementType
CAMusElement::CAMusElementType musElementType()
Definition: muselementfactory.h:90
CAMusElementFactory::setDiatonicKeyNumberOfAccs
void setDiatonicKeyNumberOfAccs(int accs)
Definition: muselementfactory.h:117
muselementfactory.h
CAMusElementFactory::configureSlur
bool configureSlur(CAStaff *staff, CANote *noteStart, CANote *noteEnd)
Definition: muselementfactory.cpp:293
CAMusElementFactory::setPlayableLength
void setPlayableLength(CAPlayableLength &playableLength)
Definition: muselementfactory.h:95
CAMusElementFactory::_fmChordAreaMinor
bool _fmChordAreaMinor
Definition: muselementfactory.h:281
CAMusElementFactory::_eBarlineType
CABarline::CABarlineType _eBarlineType
Definition: muselementfactory.h:266
CASlur::SlurPreferred
@ SlurPreferred
Definition: slur.h:24
CAMark::CAMarkType
CAMarkType
Definition: mark.h:17
rest.h
CAMusElement::CAMusElementType
CAMusElementType
Definition: muselement.h:23
CAMark::Crescendo
@ Crescendo
Definition: mark.h:23
CAMusElementFactory::_dynamicVolume
int _dynamicVolume
Definition: muselementfactory.h:287
CAMusElementFactory::_fermataType
CAFermata::CAFermataType _fermataType
Definition: muselementfactory.h:289
CAMusElementFactory
creation, removal, configuration of music elements
Definition: muselementfactory.h:39
CAMusElementFactory::configureBarline
bool configureBarline(CAStaff *staff, CAMusElement *right)
Definition: muselementfactory.cpp:197
CAMusElementFactory::setTempoBeat
void setTempoBeat(CAPlayableLength &length)
Definition: muselementfactory.h:219
CAMusElementFactory::setFBMAccsVisible
void setFBMAccsVisible(int n)
Definition: muselementfactory.h:180
CAStaff::voiceList
const QList< CAVoice * > & voiceList()
Definition: staff.h:35
CANote::setSlurStart
void setSlurStart(CASlur *slurStart)
Definition: note.h:59
CARitardando
Ritardando and Accellerando marks.
Definition: ritardando.h:15
CAMusElementFactory::_iPlayableDotted
int _iPlayableDotted
Definition: muselementfactory.h:256
CAMusElementFactory::_iNoteAccs
int _iNoteAccs
Definition: muselementfactory.h:258
CAMusElementFactory::_tupletActualNumber
int _tupletActualNumber
Definition: muselementfactory.h:255
CARest
Represents a rest in the score.
Definition: rest.h:15
CASlur::SlurSolid
@ SlurSolid
Definition: slur.h:29
CAMusElementFactory::_musElementType
CAMusElement::CAMusElementType _musElementType
Definition: muselementfactory.h:248
CAMusElementFactory::clef
CAClef::CAPredefinedClefType clef()
Definition: muselementfactory.h:145
CAMusElement::Mark
@ Mark
Definition: muselement.h:37
CAFermata::NormalFermata
@ NormalFermata
Definition: fermata.h:19
CAMusElementFactory::setCrescendoFinalVolume
void setCrescendoFinalVolume(const int v)
Definition: muselementfactory.h:225
CAPlayableLength::Sixteenth
@ Sixteenth
Definition: playablelength.h:25
settings.h
CAArticulation
Note articulation marks.
Definition: articulation.h:14
CAClef::Treble
@ Treble
Definition: clef.h:22
CAVoice::insert
bool insert(CAMusElement *eltAfter, CAMusElement *elt, bool addToChord=false)
Definition: voice.cpp:154
CAMark::Pedal
@ Pedal
Definition: mark.h:24
CAClef
Definition: clef.h:18
CABarline::CABarlineType
CABarlineType
Definition: barline.h:19
CAMusElementFactory::setMarkType
void setMarkType(CAMark::CAMarkType t)
Definition: muselementfactory.h:170
CAMusElementFactory::mpoMusElement
CAMusElement * mpoMusElement
Definition: muselementfactory.h:242
CAMusElementFactory::fbmAccs
int fbmAccs()
Definition: muselementfactory.h:177
CAMusElementFactory::_markType
CAMark::CAMarkType _markType
Definition: muselementfactory.h:267
CAMusElementFactory::_ritardandoType
CARitardando::CARitardandoType _ritardandoType
Definition: muselementfactory.h:292
CAMusElementFactory::isFMEllipse
bool isFMEllipse()
Definition: muselementfactory.h:200
CAMusElementFactory::slurStyle
CASlur::CASlurStyle slurStyle()
Definition: muselementfactory.h:166
figuredbasscontext.h
CANote
Represents a note in the score.
Definition: note.h:18
CAPlayableLength::Eighth
@ Eighth
Definition: playablelength.h:24
CARitardando::CARitardandoType
CARitardandoType
Definition: ritardando.h:17
CAPlayableLength::setDotted
void setDotted(const int d)
Definition: playablelength.h:38
CAMusElementFactory::isFingeringOriginal
const bool isFingeringOriginal()
Definition: muselementfactory.h:239
playable.h
CAMusElementFactory::isFMChordAreaMinor
bool isFMChordAreaMinor()
Definition: muselementfactory.h:197
CANote::setPhrasingSlurEnd
void setPhrasingSlurEnd(CASlur *pSlurEnd)
Definition: note.h:62
CAMusElementFactory::fbmAccsVisible
bool fbmAccsVisible()
Definition: muselementfactory.h:179
CAMusElementFactory::setFMChordArea
void setFMChordArea(CAFunctionMark::CAFunctionType c)
Definition: muselementfactory.h:186
CASlur::TieType
@ TieType
Definition: slur.h:34
CAMusElementFactory::configureRest
bool configureRest(CAVoice *voice, CAMusElement *right)
Definition: muselementfactory.cpp:442
CAVoice
Class which represents a voice in the staff.
Definition: voice.h:23
slur.h
CAMusElementFactory::addNoteExtraAccs
void addNoteExtraAccs(int iAdd)
Definition: muselementfactory.h:126
CAMusElementFactory::clefOffset
int clefOffset()
Definition: muselementfactory.h:149
CAMusElementFactory::_fmChordArea
CAFunctionMark::CAFunctionType _fmChordArea
Definition: muselementfactory.h:278
CAMusElementFactory::createMusElem
CAMusElement * createMusElem()
CAMusElement::Barline
@ Barline
Definition: muselement.h:28
CAMusElementFactory::setFBMNumber
void setFBMNumber(int n)
Definition: muselementfactory.h:176
CATimeSignature
Represents a time signature in the staff.
Definition: timesignature.h:18
CAMusElementFactory::dynamicVolume
const int dynamicVolume()
Definition: muselementfactory.h:206
CADiatonicKey::diatonicKeyToString
static const QString diatonicKeyToString(CADiatonicKey k)
Definition: diatonickey.cpp:156
CAMusElementFactory::markType
CAMark::CAMarkType markType()
Definition: muselementfactory.h:169
CAMusElementFactory::_fmFunctionMinor
bool _fmFunctionMinor
Definition: muselementfactory.h:280
CAMark::RehersalMark
@ RehersalMark
Definition: mark.h:27
CAMusElementFactory::configureTimeSignature
bool configureTimeSignature(CAStaff *staff, CAMusElement *right)
Definition: muselementfactory.cpp:179
CAMusElementFactory::_tempoBeat
CAPlayableLength _tempoBeat
Definition: muselementfactory.h:290
CAFiguredBassContext
Context for keeping the figured bass marks.
Definition: figuredbasscontext.h:16
CAMusElementFactory::fmFunction
CAFunctionMark::CAFunctionType fmFunction()
Definition: muselementfactory.h:182
CAMusElementFactory::repeatMarkType
const CARepeatMark::CARepeatMarkType repeatMarkType()
Definition: muselementfactory.h:230
CAMusElementFactory::barlineType
CABarline::CABarlineType barlineType()
Definition: muselementfactory.h:153
CAMusElementFactory::setRepeatMarkVoltaNumber
void setRepeatMarkVoltaNumber(const int n)
Definition: muselementfactory.h:234
CAMusElementFactory::_diatonicKeyGender
CADiatonicKey::CAGender _diatonicKeyGender
Definition: muselementfactory.h:261
CAFiguredBassMark
Definition: figuredbassmark.h:17
CAPlayable
Playable instances of music elements.
Definition: playable.h:18
CAMusElementFactory::_crescendoType
CACrescendo::CACrescendoType _crescendoType
Definition: muselementfactory.h:294
CAPlayableLength::SixtyFourth
@ SixtyFourth
Definition: playablelength.h:27
functionmarkcontext.h
CAMusElementFactory::~CAMusElementFactory
~CAMusElementFactory()
Definition: muselementfactory.cpp:110
CAMusElementFactory::configureTuplet
bool configureTuplet(QList< CAPlayable * > listOfNotes)
Definition: muselementfactory.cpp:504
CARest::Normal
@ Normal
Definition: rest.h:19
CAMusElementFactory::setBarlineType
void setBarlineType(CABarline::CABarlineType type)
Definition: muselementfactory.h:154
CAMusElementFactory::configureClef
bool configureClef(CAStaff *staff, CAMusElement *right)
Definition: muselementfactory.cpp:145
CAMusElementFactory::_fmTonicDegreeMinor
bool _fmTonicDegreeMinor
Definition: muselementfactory.h:282
CAMusElementFactory::tempoBeat
CAPlayableLength & tempoBeat()
Definition: muselementfactory.h:218
CAMark::Tempo
@ Tempo
Definition: mark.h:20
CARepeatMark::Volta
@ Volta
Definition: repeatmark.h:19
CAMusElementFactory::setTupletActualNumber
void setTupletActualNumber(int actualNumber)
Definition: muselementfactory.h:161
CAMusElementFactory::setNoteAccs
void setNoteAccs(int iNoteAccs)
Definition: muselementfactory.h:107
CAMusElementFactory::mpoEmpty
CAMusElement * mpoEmpty
Definition: muselementfactory.h:243
CAMusElementFactory::_slurStyle
CASlur::CASlurStyle _slurStyle
Definition: muselementfactory.h:269
CADiatonicKey
Musical key.
Definition: diatonickey.h:15
CAMusElementFactory::isFMFunctionMinor
bool isFMFunctionMinor()
Definition: muselementfactory.h:191
CAFunctionMark::Undefined
@ Undefined
Definition: functionmark.h:21
CAMusElementFactory::fbmNumber
int fbmNumber()
Definition: muselementfactory.h:175
CAMusElementFactory::_repeatMarkVoltaNumber
int _repeatMarkVoltaNumber
Definition: muselementfactory.h:296
CAMusElementFactory::_fmEllipse
bool _fmEllipse
Definition: muselementfactory.h:283
CAMusElementFactory::_crescendoFinalVolume
int _crescendoFinalVolume
Definition: muselementfactory.h:293
CAMusElementFactory::setFMTonicDegree
void setFMTonicDegree(CAFunctionMark::CAFunctionType td)
Definition: muselementfactory.h:189
CAMusElementFactory::_dynamicText
QString _dynamicText
Definition: muselementfactory.h:286
repeatmark.h
CAMusElementFactory::setFingeringFinger
void setFingeringFinger(const CAFingering::CAFingerNumber f)
Definition: muselementfactory.h:237
CAMusElementFactory::_diatonicKeyNumberOfAccs
int _diatonicKeyNumberOfAccs
Definition: muselementfactory.h:260
CANote::StemPreferred
@ StemPreferred
Definition: note.h:25
CAMusElementFactory::configureFiguredBassNumber
bool configureFiguredBassNumber(CAFiguredBassMark *fbm)
Definition: muselementfactory.cpp:466
CAFunctionMark
Represents a function mark in the score.
Definition: functionmark.h:18
CAMusElementFactory::diatonicKeyNumberOfAccs
int diatonicKeyNumberOfAccs()
Definition: muselementfactory.h:116
CAPlayable::tuplet
CATuplet * tuplet()
Definition: playable.h:28
crescendo.h
CAMusElementFactory::_articulationType
CAArticulation::CAArticulationType _articulationType
Definition: muselementfactory.h:268
CACrescendo
Crescendo and Decrescendo marks.
Definition: crescendo.h:15
CAMark::RepeatMark
@ RepeatMark
Definition: mark.h:29
CAMusElementFactory::setFMChordAreaMinor
void setFMChordAreaMinor(bool m)
Definition: muselementfactory.h:198
CAMusElementFactory::setTupletNumber
void setTupletNumber(int number)
Definition: muselementfactory.h:158
CAMusElementFactory::_eNoteStemDirection
CANote::CAStemDirection _eNoteStemDirection
Definition: muselementfactory.h:252
CAFingering::First
@ First
Definition: fingering.h:19
CAMusElementFactory::configureFunctionMark
bool configureFunctionMark(CAFunctionMarkContext *fmc, int timeStart, int timeLength)
Definition: muselementfactory.cpp:484
CAMusElementFactory::setCrescendoType
void setCrescendoType(const CACrescendo::CACrescendoType t)
Definition: muselementfactory.h:228
CAMusElementFactory::_iTimeSigBeats
int _iTimeSigBeats
Definition: muselementfactory.h:262
CAFermata::CAFermataType
CAFermataType
Definition: fermata.h:18
ritardando.h
functionmark.h
CAMusElement::Undefined
@ Undefined
Definition: muselement.h:24
CAPlayableLength::musicLength
const CAMusicLength musicLength()
Definition: playablelength.h:34
CAMark::Fingering
@ Fingering
Definition: mark.h:31
CAMusElementFactory::tempoBpm
const int tempoBpm()
Definition: muselementfactory.h:215
CAMusElementFactory::_instrument
int _instrument
Definition: muselementfactory.h:288
CAMusElementFactory::setNoteExtraAccs
void setNoteExtraAccs(int iNoteExtraAccs)
Definition: muselementfactory.h:123
instrumentchange.h
CAMusElementFactory::setFMTonicDegreeMinor
void setFMTonicDegreeMinor(bool m)
Definition: muselementfactory.h:195
CAMusElementFactory::configureKeySignature
bool configureKeySignature(CAStaff *staff, CAMusElement *right)
Definition: muselementfactory.cpp:161
CAMusElementFactory::_iClefOffset
int _iClefOffset
Definition: muselementfactory.h:265
CADiatonicKey::CAGender
CAGender
Definition: diatonickey.h:17
CAFunctionMarkContext
Context for function marks.
Definition: functionmarkcontext.h:19
CASlur::CASlurStyle
CASlurStyle
Definition: slur.h:27
CAFingering
Finger marks.
Definition: fingering.h:16
keysignature.h
CAMusElement::timeLength
virtual int timeLength() const
Definition: muselement.h:53
CAMusElementFactory::setRitardandoType
void setRitardandoType(CARitardando::CARitardandoType t)
Definition: muselementfactory.h:222
dynamic.h
CAMusElementFactory::_playableLength
CAPlayableLength _playableLength
Definition: muselementfactory.h:251
fingering.h
CAMusElementFactory::configureMark
bool configureMark(CAMusElement *elt)
Definition: muselementfactory.cpp:329
CAMark::Articulation
@ Articulation
Definition: mark.h:30
CAMusElementFactory::_eClef
CAClef::CAPredefinedClefType _eClef
Definition: muselementfactory.h:264
CADynamic
Absolute dynamic marks.
Definition: dynamic.h:16
CAMusElementFactory::_fbmAccs
int _fbmAccs
Definition: muselementfactory.h:273
CAMusElementFactory::timeSigBeat
int timeSigBeat()
Definition: muselementfactory.h:141
CAPlayableLength::Quarter
@ Quarter
Definition: playablelength.h:23
syllable.h
CAMusElementFactory::setSlurType
void setSlurType(CASlur::CASlurType type)
Definition: muselementfactory.h:164
CAMusElementFactory::setInstrument
void setInstrument(const int instrument)
Definition: muselementfactory.h:210
CAMusElement::addMark
void addMark(CAMark *mark)
Definition: muselement.cpp:135
CAMark::Ritardando
@ Ritardando
Definition: mark.h:21
CAMusElementFactory::crescendoFinalVolume
const int crescendoFinalVolume()
Definition: muselementfactory.h:224
CAMusElementFactory::_fmTonicDegree
CAFunctionMark::CAFunctionType _fmTonicDegree
Definition: muselementfactory.h:279
CAMusElementFactory::tupletActualNumber
int tupletActualNumber()
Definition: muselementfactory.h:160
CAFiguredBassMark::addNumber
void addNumber(int number)
Definition: figuredbassmark.cpp:28
CAMusElementFactory::setMusElementType
void setMusElementType(CAMusElement::CAMusElementType eMEType)
Definition: muselementfactory.h:91
CAFermata
Fermata mark.
Definition: fermata.h:16
CADiatonicPitch
Musical note pitch.
Definition: diatonicpitch.h:16
CAMusElementFactory::setNoteStemDirection
void setNoteStemDirection(CANote::CAStemDirection eDir)
Definition: muselementfactory.h:102
NULL
#define NULL
Definition: glib.h:121
CAArticulation::CAArticulationType
CAArticulationType
Definition: articulation.h:16
CATempo
Tempo mark.
Definition: tempo.h:14
CAPlayableLength::ThirtySecond
@ ThirtySecond
Definition: playablelength.h:26
CAMusElementFactory::setDiatonicKeyGender
void setDiatonicKeyGender(CADiatonicKey::CAGender g)
Definition: muselementfactory.h:119
fermata.h
CAMusElementFactory::restType
CARest::CARestType restType()
Definition: muselementfactory.h:132
CAMusElementFactory::slurType
CASlur::CASlurType slurType()
Definition: muselementfactory.h:163
text.h
CAMusElementFactory::musElement
CAMusElement * musElement()
Definition: muselementfactory.h:50
CAMusElementFactory::_repeatMarkType
CARepeatMark::CARepeatMarkType _repeatMarkType
Definition: muselementfactory.h:295
CAMusElementFactory::_iTimeSigBeat
int _iTimeSigBeat
Definition: muselementfactory.h:263
CANote::setPhrasingSlurStart
void setPhrasingSlurStart(CASlur *pSlurStart)
Definition: note.h:61
CABarline::Single
@ Single
Definition: barline.h:21
CAMusElementFactory::_fingeringFinger
CAFingering::CAFingerNumber _fingeringFinger
Definition: muselementfactory.h:297
CAMusElementFactory::playableLength
CAPlayableLength & playableLength()
Definition: muselementfactory.h:93
CAMusElementFactory::_eRestType
CARest::CARestType _eRestType
Definition: muselementfactory.h:259
diatonickey.h
CASlur::CASlurType
CASlurType
Definition: slur.h:33
CAMusElementFactory::crescendoType
const CACrescendo::CACrescendoType crescendoType()
Definition: muselementfactory.h:227
CANote::setTieEnd
void setTieEnd(CASlur *tieEnd)
Definition: note.h:58
CAMusElementFactory::_tupletNumber
int _tupletNumber
Definition: muselementfactory.h:254
CAFunctionMark::CAFunctionType
CAFunctionType
Definition: functionmark.h:20
CAContext::FunctionMarkContext
@ FunctionMarkContext
Definition: context.h:25
CAStaff
Represents a staff in the sheet.
Definition: staff.h:25
CAMusElementFactory::articulationType
CAArticulation::CAArticulationType articulationType()
Definition: muselementfactory.h:172
CAMusElement
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CAMusElementFactory::setTempoBpm
void setTempoBpm(const int tempoBpm)
Definition: muselementfactory.h:216
CASlur::PhrasingSlurType
@ PhrasingSlurType
Definition: slur.h:36
CACrescendo::Crescendo
@ Crescendo
Definition: crescendo.h:18
articulation.h
CAMusElementFactory::fermataType
const CAFermata::CAFermataType fermataType()
Definition: muselementfactory.h:212
CAMusElementFactory::setDynamicVolume
void setDynamicVolume(const int vol)
Definition: muselementfactory.h:207
CAMusElementFactory::setDynamicText
void setDynamicText(const QString t)
Definition: muselementfactory.h:204
figuredbassmark.h
CASlur::setSlurStyle
void setSlurStyle(CASlurStyle slurStyle)
Definition: slur.h:55
CAMusElementFactory::dynamicText
const QString dynamicText()
Definition: muselementfactory.h:203
CALyricsContext::repositSyllables
void repositSyllables()
Definition: lyricscontext.cpp:83
CAMusElement::isPlayable
bool isPlayable()
Definition: muselement.cpp:78
CAMusElementFactory::_eSlurType
CASlur::CASlurType _eSlurType
Definition: muselementfactory.h:253
CAPlayableLength::Half
@ Half
Definition: playablelength.h:22
CAFunctionMark::T
@ T
Definition: functionmark.h:29
CAPlayableLength
Musical length of notes and rests.
Definition: playablelength.h:16
CAPlayableLength::dotted
const int dotted()
Definition: playablelength.h:35
playablelength.h
CAMusElementFactory::subNoteExtraAccs
void subNoteExtraAccs(int iSub)
Definition: muselementfactory.h:129
CAMusElementFactory::setFMFunction
void setFMFunction(CAFunctionMark::CAFunctionType f)
Definition: muselementfactory.h:183
CAKeySignature
Represents a key signature sign in the staff.
Definition: keysignature.h:19
CACrescendo::CACrescendoType
CACrescendoType
Definition: crescendo.h:17
CARepeatMark::CARepeatMarkType
CARepeatMarkType
Definition: repeatmark.h:17
CABookMark
A bookmark shortcut.
Definition: bookmark.h:14
CAMusElementFactory::setRepeatMarkType
void setRepeatMarkType(const CARepeatMark::CARepeatMarkType t)
Definition: muselementfactory.h:231
CAMusElementFactory::noteStemDirection
CANote::CAStemDirection noteStemDirection()
Definition: muselementfactory.h:100
CASheet::contextList
const QList< CAContext * > & contextList()
Definition: sheet.h:29
CAMusElementFactory::_fbmAccsVisible
bool _fbmAccsVisible
Definition: muselementfactory.h:274
CASlur::SlurType
@ SlurType
Definition: slur.h:35
CARepeatMark
Repeat marks like segno, volta, coda etc.
Definition: repeatmark.h:15
CAMusElementFactory::emptyMusElem
void emptyMusElem()
Definition: muselementfactory.h:54
CANote::setTieStart
void setTieStart(CASlur *tieStart)
Definition: note.h:57
CAMusElementFactory::_fingeringOriginal
int _fingeringOriginal
Definition: muselementfactory.h:298
CAMusElementFactory::isFMTonicDegreeMinor
bool isFMTonicDegreeMinor()
Definition: muselementfactory.h:194
CAMark::InstrumentChange
@ InstrumentChange
Definition: mark.h:25
CAFingering::CAFingerNumber
CAFingerNumber
Definition: fingering.h:18
CAMusElementFactory::_tempoBpm
int _tempoBpm
Definition: muselementfactory.h:291
CAMusElementFactory::cloneMusElem
void cloneMusElem()
Definition: muselementfactory.h:53
CAMusElement::Note
@ Note
Definition: muselement.h:25
sheet.h
CAVoice::lastNote
CANote * lastNote()
Definition: voice.cpp:495
CALyricsContext
One stanza line of lyrics.
Definition: lyricscontext.h:19
CAMusElementFactory::_fmFunction
CAFunctionMark::CAFunctionType _fmFunction
Definition: muselementfactory.h:277
timesignature.h
CAMusElementFactory::setFermataType
void setFermataType(const CAFermata::CAFermataType type)
Definition: muselementfactory.h:213
CAMusElementFactory::setTimeSigBeat
void setTimeSigBeat(int iTimeSigBeat)
Definition: muselementfactory.h:142
barline.h
CAMusElementFactory::fmChordArea
CAFunctionMark::CAFunctionType fmChordArea()
Definition: muselementfactory.h:185
CAMusElementFactory::_fbmNumber
int _fbmNumber
Definition: muselementfactory.h:272
CANote::setSlurEnd
void setSlurEnd(CASlur *slurEnd)
Definition: note.h:60
CAMusElement::timeStart
virtual int timeStart() const
Definition: muselement.h:51
CAMusElementFactory::addNoteAccs
void addNoteAccs(int iAdd)
Definition: muselementfactory.h:110
CAMusElementFactory::noteAccs
int noteAccs()
Definition: muselementfactory.h:105
CAMusElementFactory::CAMusElementFactory
CAMusElementFactory()
Definition: muselementfactory.cpp:57
CAMusElementFactory::repeatMarkVoltaNumber
const int repeatMarkVoltaNumber()
Definition: muselementfactory.h:233
CAVoice::staff
CAStaff * staff()
Definition: voice.h:29
canorus.h
muselement.h
bookmark.h
CAMusElementFactory::setClef
void setClef(CAClef::CAPredefinedClefType eClefType)
Definition: muselementfactory.h:146
CADiatonicKey::Major
@ Major
Definition: diatonickey.h:18
CAMusElementFactory::setFMFunctionMinor
void setFMFunctionMinor(bool m)
Definition: muselementfactory.h:192
CAMusElementFactory::setArticulationType
void setArticulationType(CAArticulation::CAArticulationType t)
Definition: muselementfactory.h:173
CAContext::FiguredBassContext
@ FiguredBassContext
Definition: context.h:26
CAMusElementFactory::timeSigBeats
int timeSigBeats()
Definition: muselementfactory.h:137
CAMusElementFactory::fmTonicDegree
CAFunctionMark::CAFunctionType fmTonicDegree()
Definition: muselementfactory.h:188
CARest::CARestType
CARestType
Definition: rest.h:17
CAMusElementFactory::instrument
const int instrument()
Definition: muselementfactory.h:209
tempo.h
CAMusElementFactory::diatonicKeyGender
CADiatonicKey::CAGender diatonicKeyGender()
Definition: muselementfactory.h:118
CAMusElementFactory::setRestType
void setRestType(CARest::CARestType eType)
Definition: muselementfactory.h:134
CABarline
Music element which represents a barline in the score.
Definition: barline.h:17
tuplet.h
CAMusElementFactory::noteExtraAccs
int noteExtraAccs()
Definition: muselementfactory.h:121
CAText
Text sign.
Definition: text.h:14
CANote::CAStemDirection
CAStemDirection
Direction of the note's stem.
Definition: note.h:20
CAMark
Marks that depend on other music elements.
Definition: mark.h:15
CAMark::Undefined
@ Undefined
Definition: mark.h:18
voice.h
CAMusElementFactory::setSlurStyle
void setSlurStyle(CASlur::CASlurStyle style)
Definition: muselementfactory.h:167
CAInstrumentChange
Instrument change during the score.
Definition: instrumentchange.h:16
clef.h
CAMusElementFactory::addPlayableDotted
void addPlayableDotted(int add, CAPlayableLength curLength)
Definition: muselementfactory.cpp:126
CAMusElementFactory::setMusElement
void setMusElement(CAMusElement *elt)
Definition: muselementfactory.h:51
CAClef::CAPredefinedClefType
CAPredefinedClefType
Definition: clef.h:20
CAMusElementFactory::setFBMAccs
void setFBMAccs(int n)
Definition: muselementfactory.h:178
CAMusElementFactory::_iNoteExtraAccs
int _iNoteExtraAccs
Definition: muselementfactory.h:257
CAMusElementFactory::setTimeSigBeats
void setTimeSigBeats(int iTimeSigBeats)
Definition: muselementfactory.h:138
CAMusElementFactory::removeMusElem
void removeMusElem(bool bReallyRemove=false)
Definition: muselementfactory.cpp:119
CAMusElementFactory::configureMusElem
void configureMusElem(CAMusElement &roMusElement)
CAMark::Fermata
@ Fermata
Definition: mark.h:28
CAFunctionMarkContext::addFunctionMark
void addFunctionMark(CAFunctionMark *mark, bool replace=true)
Definition: functionmarkcontext.cpp:56
staff.h
CAVoice::lyricsContextList
const QList< CALyricsContext * > & lyricsContextList()
Definition: voice.h:113
CAMusElementFactory::setFMEllipse
void setFMEllipse(bool e)
Definition: muselementfactory.h:201
CAMark::Text
@ Text
Definition: mark.h:19
CAMusElementFactory::subNoteAccs
void subNoteAccs(int iSub)
Definition: muselementfactory.h:113
CASlur
Slur, Tie, Phrasing slur and Laissez vibrer tie This class represents any type of slur....
Definition: slur.h:18
lyricscontext.h
CAMark::Dynamic
@ Dynamic
Definition: mark.h:22
CAMusElementFactory::tupletNumber
int tupletNumber()
Definition: muselementfactory.h:157
CAMusElementFactory::setFingeringOriginal
void setFingeringOriginal(const int o)
Definition: muselementfactory.h:240
CAMusElement::musElementType
CAMusElementType musElementType()
Definition: muselement.h:46
mark.h
CAMusElementFactory::setClefOffset
void setClefOffset(int offset)
Definition: muselementfactory.h:150
CAMark::BookMark
@ BookMark
Definition: mark.h:26
CAContext::sheet
CASheet * sheet()
Definition: context.h:34
CAMusElementFactory::configureNote
bool configureNote(int pitch, CAVoice *voice, CAMusElement *right, bool addToChord)
Definition: muselementfactory.cpp:216
CAMusElement::clone
virtual CAMusElement * clone(CAContext *context=0)=0
CAMusElementFactory::ritardandoType
const CARitardando::CARitardandoType ritardandoType()
Definition: muselementfactory.h:221