Canorus 0.0
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CADynamic Class Reference

Absolute dynamic marks. More...

#include <dynamic.h>

Inheritance diagram for CADynamic:
Inheritance graph
[legend]

Public Types

enum  CADynamicText {
  ppppp , pppp , ppp , pp ,
  p , fffff , ffff , fff ,
  ff , f , fp , mf ,
  mp , rfz , sff , sf ,
  sfz , spp , sp , Custom
}
 
- Public Types inherited from CAMark
enum  CAMarkType {
  Undefined = -1 , Text , Tempo , Ritardando ,
  Dynamic , Crescendo , Pedal , InstrumentChange ,
  BookMark , RehersalMark , Fermata , RepeatMark ,
  Articulation , Fingering
}
 
- Public Types inherited from CAMusElement
enum  CAMusElementType {
  Undefined = 0 , Note , Rest , MidiNote ,
  Barline , Clef , TimeSignature , KeySignature ,
  Slur , Tuplet , Syllable , FunctionMark ,
  FiguredBassMark , Mark
}
 

Public Member Functions

 CADynamic (QString text, int volume, CANote *note)
 
virtual ~CADynamic ()
 
CADynamicclone (CAMusElement *elt=0)
 
int compare (CAMusElement *)
 
const QString text ()
 
void setText (const QString t)
 
const int volume ()
 
void setVolume (const int v)
 
- Public Member Functions inherited from CAMark
 CAMark (CAMarkType type, CAMusElement *associatedElt, int timeStart=-1, int timeLength=-1)
 
 CAMark (CAMarkType type, CAContext *context, int timeStart, int timeLength)
 
virtual ~CAMark ()
 
virtual CAMarkclone (CAContext *context)
 
virtual CAMarkclone (CAMusElement *elt=0)
 
virtual int compare (CAMusElement *elt)
 
CAMusElementassociatedElement ()
 
void setAssociatedElement (CAMusElement *elt)
 
CAMarkType markType ()
 
void setMarkType (CAMarkType type)
 
bool isCommon ()
 
- Public Member Functions inherited from CAMusElement
 CAMusElement (CAContext *context, int timeStart, int timeLength=0)
 
virtual ~CAMusElement ()
 
virtual CAMusElementclone (CAContext *context=0)=0
 
virtual int compare (CAMusElement *elt)=0
 
CAMusElementType musElementType ()
 
CAContextcontext ()
 
void setContext (CAContext *context)
 
virtual int timeStart () const
 
void setTimeStart (int time)
 
virtual int timeLength () const
 
void setTimeLength (int length)
 
int timeEnd ()
 
virtual int realTimeStart ()
 
virtual int realTimeLength ()
 
int realTimeEnd ()
 
const QString name ()
 
void setName (const QString name)
 
const bool isVisible ()
 
void setVisible (const bool v)
 
const QColor color ()
 
void setColor (const QColor c)
 
const QList< CAMark * > markList ()
 
void addMark (CAMark *mark)
 
void addMarks (QList< CAMark * > marks)
 
void removeMark (CAMark *mark)
 
const QList< CANoteCheckerError * > & noteCheckerErrorList ()
 
void addNoteCheckerError (CANoteCheckerError *nce)
 
void removeNoteCheckerError (CANoteCheckerError *nce)
 
bool isPlayable ()
 

Static Public Member Functions

static const QString dynamicTextToString (CADynamicText t)
 
static CADynamicText dynamicTextFromString (const QString t)
 
- Static Public Member Functions inherited from CAMark
static const QString markTypeToString (CAMarkType t)
 
static CAMarkType markTypeFromString (const QString s)
 
- Static Public Member Functions inherited from CAMusElement
static const QString musElementTypeToString (CAMusElementType)
 
static CAMusElementType musElementTypeFromString (const QString)
 

Private Attributes

QString _text
 
int _volume
 

Additional Inherited Members

- Protected Member Functions inherited from CAMark
void setCommon (bool c)
 
- Protected Member Functions inherited from CAMusElement
void setMusElementType (CAMusElementType type)
 
- Protected Attributes inherited from CAMusElement
CAMusElementType _musElementType
 
QList< CAMark * > _markList
 
QList< CANoteCheckerError * > _noteCheckerErrorList
 
CAContext_context
 
int _timeStart
 
int _timeLength
 
bool _visible
 
QColor _color
 
QString _name
 

Detailed Description

Absolute dynamic marks.

Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.

Absolute dynamic marks eg. piano, pp, sfz, forte.

Member Enumeration Documentation

◆ CADynamicText

Enumerator
ppppp 
pppp 
ppp 
pp 
fffff 
ffff 
fff 
ff 
fp 
mf 
mp 
rfz 
sff 
sf 
sfz 
spp 
sp 
Custom 

Constructor & Destructor Documentation

◆ CADynamic()

CADynamic::CADynamic ( QString  text,
int  volume,
CANote note 
)

References setText(), setVolume(), text(), and volume().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~CADynamic()

CADynamic::~CADynamic ( )
virtual

Member Function Documentation

◆ clone()

CADynamic * CADynamic::clone ( CAMusElement elt = 0)
virtual

Reimplemented from CAMark.

References CADynamic(), CAMusElement::musElementType(), CAMusElement::Note, text(), and volume().

Here is the call graph for this function:

◆ compare()

int CADynamic::compare ( CAMusElement elt)
virtual

Compares the music element with the given elt and returns number of differences in their properties. Returns 0, if the music elements are exact; -1 if the music element type differs; otherwise number greater than 0.

This method is usually used when opening a score document where music elements are written in various voices (eg. barlines), but are eventually merged and written only once per staff.

Reimplemented from CAMark.

References CAMark::Dynamic, CAMusElement::Mark, CAMark::markType(), CAMusElement::musElementType(), and text().

Here is the call graph for this function:

◆ dynamicTextFromString()

CADynamic::CADynamicText CADynamic::dynamicTextFromString ( const QString  t)
static

References Custom, f, ff, fff, ffff, fffff, fp, mf, mp, p, pp, ppp, pppp, ppppp, rfz, sf, sff, sfz, sp, and spp.

Referenced by CALilyPondExport::exportMarksAfterElement(), CAMainWin::on_uiDynamicCustomText_returnPressed(), and CAMainWin::updateDynamicToolBar().

Here is the caller graph for this function:

◆ dynamicTextToString()

const QString CADynamic::dynamicTextToString ( CADynamicText  t)
static

References Custom, f, ff, fff, ffff, fffff, fp, mf, mp, p, pp, ppp, pppp, ppppp, rfz, sf, sff, sfz, sp, and spp.

Referenced by CAMainWin::on_uiDynamicText_toggled().

Here is the caller graph for this function:

◆ setText()

void CADynamic::setText ( const QString  t)
inline

References _text.

Referenced by CADynamic(), CAMainWin::on_uiDynamicCustomText_returnPressed(), and CAMainWin::on_uiDynamicText_toggled().

Here is the caller graph for this function:

◆ setVolume()

void CADynamic::setVolume ( const int  v)
inline

References _volume.

Referenced by CADynamic(), and CAMainWin::on_uiDynamicVolume_valueChanged().

Here is the caller graph for this function:

◆ text()

const QString CADynamic::text ( )
inline

◆ volume()

const int CADynamic::volume ( )
inline

References _volume.

Referenced by CADynamic(), clone(), CACanorusMLExport::exportMarks(), and CAMainWin::updateDynamicToolBar().

Here is the caller graph for this function:

Member Data Documentation

◆ _text

QString CADynamic::_text
private

Referenced by setText(), and text().

◆ _volume

int CADynamic::_volume
private

Referenced by setVolume(), and volume().


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