|
Canorus
0.7
|
Note articulation marks. More...
#include <articulation.h>

Public Types | |
| enum | CAArticulationType { Undefined = -1, Accent, Marcato, Staccatissimo, Espressivo, Staccato, Tenuto, Portato, UpBow, DownBow, Flageolet, Open, Stopped, Turn, ReverseTurn, Trill, Prall, Mordent, PrallPrall, PrallMordent, UpPrall, DownPrall, UpMordent, DownMordent, PrallDown, PrallUp, LinePrall } |
Public Member Functions | |
| CAArticulation (CAArticulationType t, CANote *n) | |
| virtual | ~CAArticulation () |
| CAArticulation * | clone (CAMusElement *elt) |
| int | compare (CAMusElement *elt) |
| CANote * | associatedNote () |
| void * | setAssociatedNote (CANote *n) |
| CAArticulationType | articulationType () |
| void | setArticulationType (CAArticulationType t) |
Static Public Member Functions | |
| static const QString | articulationTypeToString (CAArticulationType t) |
| static CAArticulationType | articulationTypeFromString (const QString s) |
Private Attributes | |
| CAArticulationType | _articulationType |
Note articulation 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.
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.
Every note can have one or more articulation marks.
Other music elements can't have articulation marks.
If the note is part of the chord, all notes in the chord should have
the same articulation. References setArticulationType().
Referenced by clone().


| CAArticulation::~CAArticulation | ( | ) | [virtual] |
| CAArticulationType CAArticulation::articulationType | ( | ) | [inline] |
References _articulationType.
Referenced by clone(), and CACanorusMLExport::exportMarks().

| CAArticulation::CAArticulationType CAArticulation::articulationTypeFromString | ( | const QString | s | ) | [static] |
References Accent, DownBow, DownMordent, DownPrall, Espressivo, Flageolet, LinePrall, Marcato, Mordent, Open, Portato, Prall, PrallDown, PrallMordent, PrallPrall, PrallUp, ReverseTurn, Staccatissimo, Staccato, Stopped, Tenuto, Trill, Turn, Undefined, UpBow, UpMordent, and UpPrall.
Referenced by CACanorusMLImport::importMark().

| const QString CAArticulation::articulationTypeToString | ( | CAArticulationType | t | ) | [static] |
References Accent, DownBow, DownMordent, DownPrall, Espressivo, Flageolet, LinePrall, Marcato, Mordent, Open, Portato, Prall, PrallDown, PrallMordent, PrallPrall, PrallUp, ReverseTurn, Staccatissimo, Staccato, Stopped, Tenuto, Trill, Turn, UpBow, UpMordent, and UpPrall.
Referenced by CACanorusMLExport::exportMarks().

| CANote* CAArticulation::associatedNote | ( | ) | [inline] |
| CAArticulation * CAArticulation::clone | ( | CAMusElement * | elt | ) | [virtual] |
Reimplemented from CAMark.
References articulationType(), CAArticulation(), CAMusElement::musElementType(), and CAMusElement::Note.

| int CAArticulation::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.
| void CAArticulation::setArticulationType | ( | CAArticulationType | t | ) | [inline] |
References _articulationType.
Referenced by CAArticulation().

| void* CAArticulation::setAssociatedNote | ( | CANote * | n | ) | [inline] |
Referenced by articulationType(), and setArticulationType().
1.8.0