Canorus  0.0
instrumentchange.h
Go to the documentation of this file.
1 
8 #ifndef INSTRUMENTCHANGE_H_
9 #define INSTRUMENTCHANGE_H_
10 
11 #include <QString>
12 #include "score/mark.h"
13 
14 class CANote;
15 
16 class CAInstrumentChange: public CAMark {
17 public:
18  CAInstrumentChange( int instrument, CANote *note );
19  virtual ~CAInstrumentChange();
20 
22  int compare( CAMusElement* );
23 
24  inline const int instrument() { return _instrument; }
25  inline void setInstrument( const int instrument ) { _instrument = instrument; }
26 
27 private:
29 };
30 
31 #endif /* INSTRUMENTCHANGE_H_ */
CAInstrumentChange::CAInstrumentChange
CAInstrumentChange(int instrument, CANote *note)
Definition: instrumentchange.cpp:21
CAMusElement::Mark
@ Mark
Definition: muselement.h:37
note.h
CANote
Represents a note in the score.
Definition: note.h:18
CAInstrumentChange::~CAInstrumentChange
virtual ~CAInstrumentChange()
Definition: instrumentchange.cpp:26
CAInstrumentChange::instrument
const int instrument()
Definition: instrumentchange.h:24
CAInstrumentChange::_instrument
int _instrument
Definition: instrumentchange.h:28
CAMark::markType
CAMarkType markType()
Definition: mark.h:45
instrumentchange.h
CAInstrumentChange::clone
CAInstrumentChange * clone(CAMusElement *elt=0)
Definition: instrumentchange.cpp:29
CAMusElement
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CAMark::InstrumentChange
@ InstrumentChange
Definition: mark.h:25
CAMusElement::Note
@ Note
Definition: muselement.h:25
CAInstrumentChange::setInstrument
void setInstrument(const int instrument)
Definition: instrumentchange.h:25
CAInstrumentChange::compare
int compare(CAMusElement *)
Definition: instrumentchange.cpp:33
CAMark
Marks that depend on other music elements.
Definition: mark.h:15
CAInstrumentChange
Instrument change during the score.
Definition: instrumentchange.h:16
CAMusElement::musElementType
CAMusElementType musElementType()
Definition: muselement.h:46
mark.h