|
Canorus
0.7
|
Represents a function mark in the score. More...
#include <functionmark.h>

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.\sa CADrawableFunctionMark, CAFunctionMarkContext
Name of the function (tonic, subdominant, etc.), its chord area or the tonic degree. Possible names are:
| 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(), CAMusElement::FunctionMark, key(), setAlterations(), and tonicDegree().
Referenced by clone().


| QList<int> CAFunctionMark::addedDegrees | ( | ) | [inline] |
References _addedDegrees.
Referenced by compare(), CADrawableFunctionMarkSupport::draw(), and isEmpty().

| QList<int> CAFunctionMark::alteredDegrees | ( | ) | [inline] |
References _alteredDegrees.
Referenced by compare(), CADrawableFunctionMarkSupport::draw(), and isEmpty().

| CAFunctionType CAFunctionMark::chordArea | ( | ) | [inline] |
References _chordArea.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CAFunctionMark(), clone(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), setChordArea(), and CAMainWin::updateFMToolBar().

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


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

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

| CAFunctionMarkContext* CAFunctionMark::fmContext | ( | ) | [inline] |
| CAFunctionType CAFunctionMark::function | ( | ) | [inline] |
References _function.
Referenced by compare(), CADrawableFunctionMarkSupport::draw(), CAEngraver::reposit(), and CAMainWin::updateFMToolBar().

| CAFunctionMark::CAFunctionType CAFunctionMark::functionTypeFromString | ( | const QString | type | ) | [static] |
| const QString CAFunctionMark::functionTypeToString | ( | CAFunctionMark::CAFunctionType | type | ) | [static] |
| bool CAFunctionMark::isChordAreaMinor | ( | ) | [inline] |
References _chordAreaMinor.
Referenced by clone(), CADrawableFunctionMarkSupport::draw(), and CAMainWin::updateFMToolBar().

| bool CAFunctionMark::isEmpty | ( | ) | [inline] |
References addedDegrees(), alteredDegrees(), chordArea(), T, tonicDegree(), and Undefined.

| bool CAFunctionMark::isMinor | ( | ) | [inline] |
References _minor.
Referenced by clone(), and CAMainWin::updateFMToolBar().

| bool CAFunctionMark::isPartOfEllipse | ( | ) | [inline] |
References _ellipseSequence.
Referenced by clone(), and CAMainWin::updateFMToolBar().

| bool CAFunctionMark::isTonicDegreeMinor | ( | ) | [inline] |
References _tonicDegreeMinor.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), clone(), CADrawableFunctionMarkSupport::draw(), and CAMainWin::updateFMToolBar().

| CADiatonicKey CAFunctionMark::key | ( | ) | [inline] |
References _key.
Referenced by CAFunctionMark(), clone(), compare(), CAEngraver::reposit(), setKey(), and CAMainWin::updateFMToolBar().

| void CAFunctionMark::setAddedDegrees | ( | QList< int > | degrees | ) | [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().

| void CAFunctionMark::setAlteredDegrees | ( | QList< int > | degrees | ) | [inline] |
| void CAFunctionMark::setChordArea | ( | CAFunctionType | chordArea | ) | [inline] |
References _chordArea, and chordArea().
Referenced by clear(), and CAMainWin::on_uiFMChordArea_toggled().


| void CAFunctionMark::setChordAreaMinor | ( | bool | minor | ) | [inline] |
References _chordAreaMinor.
Referenced by CAMainWin::on_uiFMChordArea_toggled().

| void CAFunctionMark::setEllipse | ( | bool | ellipse | ) | [inline] |
References _ellipseSequence.
Referenced by CAMainWin::on_uiFMEllipse_toggled().

| void CAFunctionMark::setFunction | ( | CAFunctionType | function | ) | [inline] |
References _function.
Referenced by clear(), and CAMainWin::on_uiFMFunction_toggled().

| void CAFunctionMark::setKey | ( | CADiatonicKey | key | ) | [inline] |
Referenced by clear(), and CAMainWin::on_uiKeySig_activated().


| void CAFunctionMark::setMinor | ( | bool | minor | ) | [inline] |
References _minor.
Referenced by CAMainWin::on_uiFMFunction_toggled().

| void CAFunctionMark::setTonicDegree | ( | CAFunctionType | tonicDegree | ) | [inline] |
References _tonicDegree, and tonicDegree().
Referenced by clear(), and CAMainWin::on_uiFMTonicDegree_toggled().


| void CAFunctionMark::setTonicDegreeMinor | ( | bool | minor | ) | [inline] |
References _tonicDegreeMinor.
Referenced by CAMainWin::on_uiFMTonicDegree_toggled().

| CAFunctionType CAFunctionMark::tonicDegree | ( | ) | [inline] |
References _tonicDegree.
Referenced by CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CAFunctionMark(), clone(), compare(), CADrawableFunctionMarkSupport::draw(), isEmpty(), CAEngraver::reposit(), setTonicDegree(), and CAMainWin::updateFMToolBar().

QList<int> CAFunctionMark::_addedDegrees [private] |
Referenced by addedDegrees(), clone(), setAddedDegrees(), and setAlterations().
QList<int> CAFunctionMark::_alteredDegrees [private] |
Referenced by alteredDegrees(), clone(), setAlterations(), and setAlteredDegrees().
CAFunctionType CAFunctionMark::_chordArea [private] |
Referenced by CAFunctionMark(), chordArea(), and setChordArea().
bool CAFunctionMark::_chordAreaMinor [private] |
Referenced by CAFunctionMark(), isChordAreaMinor(), and setChordAreaMinor().
bool CAFunctionMark::_ellipseSequence [private] |
Referenced by CAFunctionMark(), isPartOfEllipse(), and setEllipse().
CAFunctionType CAFunctionMark::_function [private] |
Referenced by CAFunctionMark(), function(), isSideDegree(), and setFunction().
CADiatonicKey CAFunctionMark::_key [private] |
Referenced by CAFunctionMark(), key(), and setKey().
bool CAFunctionMark::_minor [private] |
Referenced by CAFunctionMark(), isMinor(), and setMinor().
CAFunctionType CAFunctionMark::_tonicDegree [private] |
Referenced by CAFunctionMark(), setTonicDegree(), and tonicDegree().
bool CAFunctionMark::_tonicDegreeMinor [private] |
Referenced by CAFunctionMark(), isTonicDegreeMinor(), and setTonicDegreeMinor().
1.8.0