|
Canorus
0.7
|
Tempo mark. More...
#include <tempo.h>

Public Member Functions | |
| CATempo (CAPlayableLength l, int bpm, CAMusElement *m) | |
| virtual | ~CATempo () |
| CATempo * | clone (CAMusElement *elt=0) |
| int | compare (CAMusElement *elt) |
| int | bpm () |
| void | setBpm (int bpm) |
| CAPlayableLength | beat () |
| void | setBeat (CAPlayableLength l) |
| int | beatDotted () |
| void | setBeatDotted (int dotted) |
Private Attributes | |
| CAPlayableLength | _beat |
| int | _beatDotted |
| int | _bpm |
Tempo mark.
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.
Sets and shows the tempo mark.
It consists of the note (beat) and beats per minute number.| CATempo::CATempo | ( | CAPlayableLength | l, |
| int | bpm, | ||
| CAMusElement * | m | ||
| ) |
| CATempo::~CATempo | ( | ) | [virtual] |
| CAPlayableLength CATempo::beat | ( | ) | [inline] |
References _beat.
Referenced by clone(), compare(), CACanorusMLExport::exportMarks(), and CAMainWin::updateTempoToolBar().

| int CATempo::beatDotted | ( | ) | [inline] |
| int CATempo::bpm | ( | ) | [inline] |
References _bpm.
Referenced by clone(), compare(), CACanorusMLExport::exportMarks(), setBpm(), and CAMainWin::updateTempoToolBar().

| CATempo * CATempo::clone | ( | CAMusElement * | elt = 0 | ) | [virtual] |
| int CATempo::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.
References beat(), beatDotted(), bpm(), CAMusElement::Mark, CAMusElement::musElementType(), and CAMark::Tempo.

| void CATempo::setBeat | ( | CAPlayableLength | l | ) | [inline] |
References _beat.
Referenced by CATempo(), and CAMainWin::on_uiTempoBeat_toggled().

| void CATempo::setBeatDotted | ( | int | dotted | ) | [inline] |
References _beatDotted.
| void CATempo::setBpm | ( | int | bpm | ) | [inline] |
Referenced by CATempo(), and CAMainWin::on_uiTempoBpm_returnPressed().


CAPlayableLength CATempo::_beat [private] |
int CATempo::_beatDotted [private] |
Referenced by beatDotted(), and setBeatDotted().
int CATempo::_bpm [private] |
1.8.0