|
Canorus
0.0
|
Instrument change during the score. More...
#include <instrumentchange.h>

Private Attributes | |
| int | _instrument |
Instrument change during the score.
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.
This class is used to allow the playback to change the default voice instrument.
| CAInstrumentChange::CAInstrumentChange | ( | int | instrument, |
| CANote * | note | ||
| ) |
References instrument(), and setInstrument().
Referenced by clone().


|
virtual |
|
virtual |
Reimplemented from CAMark.
References CAInstrumentChange(), instrument(), CAMusElement::musElementType(), and CAMusElement::Note.

|
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 instrument(), CAMark::InstrumentChange, CAMusElement::Mark, CAMark::markType(), and CAMusElement::musElementType().

|
inline |
References _instrument.
Referenced by CAInstrumentChange(), clone(), compare(), CACanorusMLExport::exportMarks(), CAPlayback::run(), setInstrument(), and CAMainWin::updateInstrumentToolBar().

|
inline |
References _instrument, and instrument().
Referenced by CAInstrumentChange(), and CAMainWin::on_uiInstrumentChange_activated().


|
private |
Referenced by instrument(), and setInstrument().