Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
instrumentchange.h
Go to the documentation of this file.
1 
8 #ifndef INSTRUMENTCHANGE_H_
9 #define INSTRUMENTCHANGE_H_
10 
11 #include <QString>
12 #include "core/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_ */
Instrument change during the score.
Definition: instrumentchange.h:16
Marks that depend on other music elements.
Definition: mark.h:15
int compare(CAMusElement *)
Definition: instrumentchange.cpp:33
Represents a note in the score.
Definition: note.h:18
const int instrument()
Definition: instrumentchange.h:24
CAInstrumentChange(int instrument, CANote *note)
Definition: instrumentchange.cpp:21
An abstract class which represents every music element in the score.
Definition: muselement.h:20
void setInstrument(const int instrument)
Definition: instrumentchange.h:25
virtual ~CAInstrumentChange()
Definition: instrumentchange.cpp:26
int _instrument
Definition: instrumentchange.h:28
CAInstrumentChange * clone(CAMusElement *elt=0)
Definition: instrumentchange.cpp:29