Logo Search packages:      
Sourcecode: canorus version File versions  Download package

CAFunctionMark Class Reference

#include <functionmark.h>

Inheritance diagram for CAFunctionMark:

CAMusElement

List of all members.


Detailed Description

Represents a function mark in the score.

Copyright (c) 2006-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 LICNESE.GPL for details.

Copyright (c) 2006-2008, 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.

Function marks are used to describe a harmony flow of the score. Current implementation uses a standard European-German nomenclature of harmony.

Todo:
Current translations of terms are mostly done "by heart". An English/Amercian composer or musicologist should translate attributes the best. -Matevz
See also:
CADrawableFunctionMark, CAFunctionMarkContext

Definition at line 18 of file functionmark.h.


Public Types

enum  CAFunctionType {
  Undefined = 0, I = 1, II = 2, III = 3,
  IV = 4, V = 5, VI = 6, VII = 7,
  T = 8, S = 9, D = 10, F = 11,
  N = 12, L = 13, K = 14
}
enum  CAMusElementType {
  Undefined = 0, Note, Rest, Barline,
  Clef, TimeSignature, KeySignature, Slur,
  Tuplet, Syllable, FunctionMark, Mark
}

Public Member Functions

QList< int > addedDegrees ()
void addMark (CAMark *mark)
void addMarks (QList< CAMark * > marks)
QList< int > alteredDegrees ()
 CAFunctionMark (CAFunctionType function, bool minor, const CADiatonicKey key, CAFunctionMarkContext *context, int timeStart, int timeLength, CAFunctionType chordArea=Undefined, bool chordAreaMinor=false, CAFunctionType tonicDegree=T, bool tonicDegreeMinor=false, const QString alterations="", bool ellipseSequence=false)
CAFunctionType chordArea ()
void clear ()
CAFunctionMarkclone (CAContext *context=0)
const QColor color ()
int compare (CAMusElement *function)
CAContextcontext ()
CAFunctionMarkContextfmContext ()
CAFunctionType function ()
bool isChordAreaMinor ()
bool isEmpty ()
bool isMinor ()
bool isPartOfEllipse ()
bool isPlayable ()
bool isSideDegree ()
bool isTonicDegreeMinor ()
const bool isVisible ()
CADiatonicKey key ()
const QList< CAMark * > markList ()
CAMusElementType musElementType ()
const QString name ()
void removeMark (CAMark *mark)
void setAddedDegrees (QList< int > degrees)
void setAlterations (const QString alterations)
void setAlteredDegrees (QList< int > degrees)
void setChordArea (CAFunctionType chordArea)
void setChordAreaMinor (bool minor)
void setColor (const QColor c)
CAContextsetContext (CAContext *context)
void setEllipse (bool ellipse)
void setFunction (CAFunctionType function)
void setKey (CADiatonicKey key)
void setMinor (bool minor)
void setName (const QString name)
void setTimeLength (int length)
void setTimeStart (int time)
void setTonicDegree (CAFunctionType tonicDegree)
void setTonicDegreeMinor (bool minor)
void setVisible (const bool v)
int timeEnd ()
virtual int timeLength ()
virtual int timeStart ()
CAFunctionType tonicDegree ()

Static Public Member Functions

static CAFunctionType functionTypeFromString (const QString)
static const QString functionTypeToString (CAFunctionType)
static CAMusElementType musElementTypeFromString (const QString)
static const QString musElementTypeToString (CAMusElementType)

Protected Member Functions

void setMusElementType (CAMusElementType type)

Protected Attributes

QColor _color
CAContext_context
QList< CAMark * > _markList
CAMusElementType _musElementType
QString _name
int _timeLength
int _timeStart
bool _visible

Private Attributes

QList< int > _addedDegrees
QList< int > _alteredDegrees
CAFunctionType _chordArea
bool _chordAreaMinor
bool _ellipseSequence
CAFunctionType _function
CADiatonicKey _key
bool _minor
CAFunctionType _tonicDegree
bool _tonicDegreeMinor

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

Generated by  Doxygen 1.6.0   Back to index