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

Crescendo and Decrescendo marks. More...

#include <crescendo.h>

Inheritance diagram for CACrescendo:
Inheritance graph
[legend]

Public Types

enum  CACrescendoType { Crescendo , Decrescendo }
 
- 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

 CACrescendo (int finalVolume, CANote *note, CACrescendoType t=Crescendo, int timeStart=-1, int timeLength=-1)
 
virtual ~CACrescendo ()
 
CACrescendoclone (CAMusElement *elt=0)
 
int compare (CAMusElement *)
 
const int finalVolume ()
 
void setFinalVolume (const int v)
 
const CACrescendoType crescendoType ()
 
void setCrescendoType (CACrescendoType t)
 
- 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 crescendoTypeToString (CACrescendoType t)
 
static CACrescendoType crescendoTypeFromString (const QString r)
 
- 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

int _finalVolume
 
CACrescendoType _crescendoType
 

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

Crescendo and Decrescendo 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.

Relative dynamic marks.

Crescendo starts with the current volume and linearily increases the volume to the final volume. Decrescendo decreases volume to the final volume.

Member Enumeration Documentation

◆ CACrescendoType

Enumerator
Crescendo 
Decrescendo 

Constructor & Destructor Documentation

◆ CACrescendo()

CACrescendo::CACrescendo ( int  finalVolume,
CANote note,
CACrescendoType  t = Crescendo,
int  timeStart = -1,
int  timeLength = -1 
)

References setCrescendoType(), and setFinalVolume().

Referenced by clone().

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

◆ ~CACrescendo()

CACrescendo::~CACrescendo ( )
virtual

Member Function Documentation

◆ clone()

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

◆ compare()

int CACrescendo::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::Crescendo, crescendoType(), finalVolume(), CAMusElement::Mark, CAMark::markType(), and CAMusElement::musElementType().

Here is the call graph for this function:

◆ crescendoType()

const CACrescendoType CACrescendo::crescendoType ( )
inline

References _crescendoType.

Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

◆ crescendoTypeFromString()

CACrescendo::CACrescendoType CACrescendo::crescendoTypeFromString ( const QString  r)
static

References Crescendo, and Decrescendo.

Referenced by CACanorusMLImport::importMark().

Here is the caller graph for this function:

◆ crescendoTypeToString()

const QString CACrescendo::crescendoTypeToString ( CACrescendoType  t)
static

References Crescendo, and Decrescendo.

Referenced by CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

◆ finalVolume()

const int CACrescendo::finalVolume ( )
inline

References _finalVolume.

Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

◆ setCrescendoType()

void CACrescendo::setCrescendoType ( CACrescendoType  t)
inline

References _crescendoType.

Referenced by CACrescendo().

Here is the caller graph for this function:

◆ setFinalVolume()

void CACrescendo::setFinalVolume ( const int  v)
inline

References _finalVolume.

Referenced by CACrescendo().

Here is the caller graph for this function:

Member Data Documentation

◆ _crescendoType

CACrescendoType CACrescendo::_crescendoType
private

Referenced by crescendoType(), and setCrescendoType().

◆ _finalVolume

int CACrescendo::_finalVolume
private

Referenced by finalVolume(), and setFinalVolume().


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