Canorus 0.0
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CAArticulation Class Reference

Note articulation marks. More...

#include <articulation.h>

Inheritance diagram for CAArticulation:
Inheritance graph
[legend]

Public Types

enum  CAArticulationType {
  Undefined = -1 , Accent , Marcato , Staccatissimo ,
  Espressivo , Staccato , Tenuto , Portato ,
  Breath , UpBow , DownBow , Flageolet ,
  Open , Stopped , Turn , ReverseTurn ,
  Trill , Prall , Mordent , PrallPrall ,
  PrallMordent , UpPrall , DownPrall , UpMordent ,
  DownMordent , PrallDown , PrallUp , LinePrall
}
 
- Public Types inherited from CAMark
enum  CAMarkType {
  Undefined = -1 , Text , Tempo , Ritardando ,
  Dynamic , Crescendo , Pedal , InstrumentChange ,
  BookMark , RehersalMark , Fermata , RepeatMark ,
  Articulation , Fingering
}
 
- Public Types inherited from CAMusElement
enum  CAMusElementType {
  Undefined = 0 , Note , Rest , MidiNote ,
  Barline , Clef , TimeSignature , KeySignature ,
  Slur , Tuplet , Syllable , FunctionMark ,
  FiguredBassMark , Mark
}
 

Public Member Functions

 CAArticulation (CAArticulationType t, CANote *n)
 
virtual ~CAArticulation ()
 
CAArticulationclone (CAMusElement *elt)
 
int compare (CAMusElement *elt)
 
CANoteassociatedNote ()
 
void * setAssociatedNote (CANote *n)
 
CAArticulationType articulationType ()
 
void setArticulationType (CAArticulationType t)
 
- Public Member Functions inherited from CAMark
 CAMark (CAMarkType type, CAMusElement *associatedElt, int timeStart=-1, int timeLength=-1)
 
 CAMark (CAMarkType type, CAContext *context, int timeStart, int timeLength)
 
virtual ~CAMark ()
 
virtual CAMarkclone (CAContext *context)
 
virtual CAMarkclone (CAMusElement *elt=0)
 
virtual int compare (CAMusElement *elt)
 
CAMusElementassociatedElement ()
 
void setAssociatedElement (CAMusElement *elt)
 
CAMarkType markType ()
 
void setMarkType (CAMarkType type)
 
bool isCommon ()
 
- Public Member Functions inherited from CAMusElement
 CAMusElement (CAContext *context, int timeStart, int timeLength=0)
 
virtual ~CAMusElement ()
 
virtual CAMusElementclone (CAContext *context=0)=0
 
virtual int compare (CAMusElement *elt)=0
 
CAMusElementType musElementType ()
 
CAContextcontext ()
 
void setContext (CAContext *context)
 
virtual int timeStart () const
 
void setTimeStart (int time)
 
virtual int timeLength () const
 
void setTimeLength (int length)
 
int timeEnd ()
 
virtual int realTimeStart ()
 
virtual int realTimeLength ()
 
int realTimeEnd ()
 
const QString name ()
 
void setName (const QString name)
 
const bool isVisible ()
 
void setVisible (const bool v)
 
const QColor color ()
 
void setColor (const QColor c)
 
const QList< CAMark * > markList ()
 
void addMark (CAMark *mark)
 
void addMarks (QList< CAMark * > marks)
 
void removeMark (CAMark *mark)
 
const QList< CANoteCheckerError * > & noteCheckerErrorList ()
 
void addNoteCheckerError (CANoteCheckerError *nce)
 
void removeNoteCheckerError (CANoteCheckerError *nce)
 
bool isPlayable ()
 

Static Public Member Functions

static const QString articulationTypeToString (CAArticulationType t)
 
static CAArticulationType articulationTypeFromString (const QString s)
 
- Static Public Member Functions inherited from CAMark
static const QString markTypeToString (CAMarkType t)
 
static CAMarkType markTypeFromString (const QString s)
 
- Static Public Member Functions inherited from CAMusElement
static const QString musElementTypeToString (CAMusElementType)
 
static CAMusElementType musElementTypeFromString (const QString)
 

Private Attributes

CAArticulationType _articulationType
 

Additional Inherited Members

- Protected Member Functions inherited from CAMark
void setCommon (bool c)
 
- 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
 

Detailed Description

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-2019, 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.

Member Enumeration Documentation

◆ CAArticulationType

Enumerator
Undefined 
Accent 
Marcato 
Staccatissimo 
Espressivo 
Staccato 
Tenuto 
Portato 
Breath 
UpBow 
DownBow 
Flageolet 
Open 
Stopped 
Turn 
ReverseTurn 
Trill 
Prall 
Mordent 
PrallPrall 
PrallMordent 
UpPrall 
DownPrall 
UpMordent 
DownMordent 
PrallDown 
PrallUp 
LinePrall 

Constructor & Destructor Documentation

◆ CAArticulation()

CAArticulation::CAArticulation ( CAArticulationType  t,
CANote n 
)

References setArticulationType().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~CAArticulation()

CAArticulation::~CAArticulation ( )
virtual

Member Function Documentation

◆ articulationType()

CAArticulationType CAArticulation::articulationType ( )
inline

References _articulationType.

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

Here is the caller graph for this function:

◆ articulationTypeFromString()

CAArticulation::CAArticulationType CAArticulation::articulationTypeFromString ( const QString  s)
static

◆ articulationTypeToString()

const QString CAArticulation::articulationTypeToString ( CAArticulationType  t)
static

◆ associatedNote()

CANote * CAArticulation::associatedNote ( )
inline

References CAMark::associatedElement().

Here is the call graph for this function:

◆ clone()

CAArticulation * CAArticulation::clone ( CAMusElement elt)
virtual

Reimplemented from CAMark.

References articulationType(), CAArticulation(), CAMusElement::musElementType(), and CAMusElement::Note.

Here is the call graph for this function:

◆ compare()

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.

◆ setArticulationType()

void CAArticulation::setArticulationType ( CAArticulationType  t)
inline

References _articulationType.

Referenced by CAArticulation().

Here is the caller graph for this function:

◆ setAssociatedNote()

void * CAArticulation::setAssociatedNote ( CANote n)
inline

References CAMark::setAssociatedElement().

Here is the call graph for this function:

Member Data Documentation

◆ _articulationType

CAArticulationType CAArticulation::_articulationType
private

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