Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
CACrescendo Class Reference

Crescendo and Decrescendo marks. More...

#include <crescendo.h>

Inheritance diagram for CACrescendo:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CACrescendoType { Crescendo, Decrescendo }

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)

Static Public Member Functions

static const QString crescendoTypeToString (CACrescendoType t)
static CACrescendoType crescendoTypeFromString (const QString r)

Private Attributes

int _finalVolume
CACrescendoType _crescendoType

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

Enumerator:
Crescendo 
Decrescendo 

Constructor & Destructor Documentation

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:


Member Function Documentation

CACrescendo * CACrescendo::clone ( CAMusElement elt = 0) [virtual]
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 Crescendo, crescendoType(), finalVolume(), CAMusElement::Mark, and CAMusElement::musElementType().

Here is the call graph for this function:

References _crescendoType.

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

Here is the caller graph for this function:

References Crescendo, and Decrescendo.

Referenced by CACanorusMLImport::importMark().

Here is the caller graph for this function:

References Crescendo, and Decrescendo.

Referenced by CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

const int CACrescendo::finalVolume ( ) [inline]

References _finalVolume.

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

Here is the caller graph for this function:

References _crescendoType.

Referenced by CACrescendo().

Here is the caller graph for this function:

void CACrescendo::setFinalVolume ( const int  v) [inline]

References _finalVolume.

Referenced by CACrescendo().

Here is the caller graph for this function:


Member Data Documentation

Referenced by crescendoType(), and setCrescendoType().

Referenced by finalVolume(), and setFinalVolume().


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