|
Canorus 0.0
|
Represents a function mark in the score. More...
#include <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 } |
Public Types inherited from CAMusElement | |
| enum | CAMusElementType { Undefined = 0 , Note , Rest , MidiNote , Barline , Clef , TimeSignature , KeySignature , Slur , Tuplet , Syllable , FunctionMark , FiguredBassMark , Mark } |
Static Public Member Functions | |
| static const QString | functionTypeToString (CAFunctionType) |
| static CAFunctionType | functionTypeFromString (const QString) |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Private Attributes | |
| CAFunctionType | _function |
| CADiatonicKey | _key |
| CAFunctionType | _chordArea |
| bool | _chordAreaMinor |
| CAFunctionType | _tonicDegree |
| bool | _tonicDegreeMinor |
| QList< int > | _alteredDegrees |
| QList< int > | _addedDegrees |
| bool | _minor |
| bool | _ellipseSequence |
Additional Inherited Members | |
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 |
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.
Name of the function (tonic, subdominant, etc.), its chord area or the tonic degree. Possible names are:
| Enumerator | |
|---|---|
| Undefined | |
| I | |
| II | |
| III | |
| IV | |
| V | |
| VI | |
| VII | |
| T | |
| S | |
| D | |
| F | |
| N | |
| L | |
| K | |
| CAFunctionMark::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 |
||
| ) |
References _chordArea, _chordAreaMinor, _ellipseSequence, _function, _key, _minor, CAMusElement::_musElementType, _tonicDegree, _tonicDegreeMinor, chordArea(), function(), CAMusElement::FunctionMark, key(), setAlterations(), and tonicDegree().
Referenced by clone().


| CAFunctionMark::~CAFunctionMark | ( | ) |
|
inline |
References _addedDegrees.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), and CALayoutEngine::reposit().

|
inline |
References _alteredDegrees.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), and CALayoutEngine::reposit().

|
inline |
References _chordArea.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CAFunctionMark(), clone(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), CALayoutEngine::reposit(), setChordArea(), and CAMainWin::updateFMToolBar().

| void CAFunctionMark::clear | ( | ) |
References setChordArea(), setFunction(), setKey(), setTonicDegree(), T, and Undefined.
Referenced by CAMainWin::deleteSelection().


|
virtual |
Clones a music element with exact properties including the context.
Implements CAMusElement.
References _addedDegrees, _alteredDegrees, CAMusElement::addMark(), CAFunctionMark(), chordArea(), CAMusElement::context(), function(), isChordAreaMinor(), isMinor(), isPartOfEllipse(), isTonicDegreeMinor(), key(), CAMusElement::markList(), setAddedDegrees(), setAlteredDegrees(), CAMusElement::timeLength(), CAMusElement::timeStart(), and tonicDegree().

|
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.
Implements CAMusElement.
References addedDegrees(), alteredDegrees(), chordArea(), function(), CAMusElement::FunctionMark, key(), CAMusElement::musElementType(), and tonicDegree().

|
inline |
|
inline |
References _function.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CAFunctionMark(), clone(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), CALayoutEngine::reposit(), setFunction(), and CAMainWin::updateFMToolBar().

|
static |
|
static |
|
inline |
References _chordAreaMinor.
Referenced by clone(), CADrawableFunctionMarkSupport::draw(), and CAMainWin::updateFMToolBar().

|
inline |
References addedDegrees(), alteredDegrees(), chordArea(), function(), T, tonicDegree(), and Undefined.

|
inline |
References _minor.
Referenced by CADrawableFunctionMark::CADrawableFunctionMark(), clone(), and CAMainWin::updateFMToolBar().

|
inline |
References _ellipseSequence.
Referenced by clone(), CALayoutEngine::reposit(), and CAMainWin::updateFMToolBar().

|
inline |
References _tonicDegreeMinor.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), clone(), CADrawableFunctionMarkSupport::draw(), and CAMainWin::updateFMToolBar().

|
inline |
References _key.
Referenced by CAFunctionMark(), clone(), compare(), CALayoutEngine::reposit(), setKey(), CATranspose::transposeByInterval(), and CAMainWin::updateFMToolBar().

|
inline |
| void CAFunctionMark::setAlterations | ( | const QString | alterations | ) |
Reads alterations and sets alteredDegrees and addedDegrees. Sixte ajoutee and other added degrees have +/- sign after the number. Stable alterations have +/- sign before the number. alterations consists first of added degrees and then altered degrees.
References _addedDegrees, and _alteredDegrees.
Referenced by CAFunctionMark().

|
inline |
|
inline |
References _chordArea, and chordArea().
Referenced by clear(), and CAMainWin::on_uiFMChordArea_toggled().


|
inline |
References _chordAreaMinor.
Referenced by CAMainWin::on_uiFMChordArea_toggled().

|
inline |
References _ellipseSequence.
Referenced by CAMainWin::on_uiFMEllipse_toggled().

|
inline |
References _function, and function().
Referenced by clear(), and CAMainWin::on_uiFMFunction_toggled().


|
inline |
Referenced by clear(), and CAKeySignatureCtl::on_uiKeySig_activated().


|
inline |
References _minor.
Referenced by CAMainWin::on_uiFMFunction_toggled().

|
inline |
References _tonicDegree, and tonicDegree().
Referenced by clear(), and CAMainWin::on_uiFMTonicDegree_toggled().


|
inline |
References _tonicDegreeMinor.
Referenced by CAMainWin::on_uiFMTonicDegree_toggled().

|
inline |
References _tonicDegree.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CAFunctionMark(), clone(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), CALayoutEngine::reposit(), setTonicDegree(), and CAMainWin::updateFMToolBar().

|
private |
Referenced by addedDegrees(), clone(), setAddedDegrees(), and setAlterations().
|
private |
Referenced by alteredDegrees(), clone(), setAlterations(), and setAlteredDegrees().
|
private |
Referenced by CAFunctionMark(), chordArea(), and setChordArea().
|
private |
Referenced by CAFunctionMark(), isChordAreaMinor(), and setChordAreaMinor().
|
private |
Referenced by CAFunctionMark(), isPartOfEllipse(), and setEllipse().
|
private |
Referenced by CAFunctionMark(), function(), isSideDegree(), and setFunction().
|
private |
Referenced by CAFunctionMark(), key(), and setKey().
|
private |
Referenced by CAFunctionMark(), isMinor(), and setMinor().
|
private |
Referenced by CAFunctionMark(), setTonicDegree(), and tonicDegree().
|
private |
Referenced by CAFunctionMark(), isTonicDegreeMinor(), and setTonicDegreeMinor().