|
|
#ifndef _MIDIEVENT_H_ #define _MIDIEVENT_H_ #include "event.h" /** Instances of this class are midievents. They do not need a (graphical) presentation of their own. They can be displayed * graphically within the presentation of the parts, they belong to. **/ class MidiEvent : public Event { private: int _codechan; int _value1; int _value2; public: MidiEvent( ); MidiEvent(const MidiEvent&); MidiEvent(Position pos, int cc, int value1, int value2=0); int code() const { return int((_codechan&240)/16); } int channel() const { return int(_codechan&15); } int codeAndChannel() const { return _codechan; } int value1() const { return _value1; } int value2() const { return _value2; } void setCodeAndChannel(int); void setValue1(int); void setValue2(int); virtual ostream & print(int,ostream&) const; virtual void flush(const char*) const; virtual Element * copy() const; static Element * load(char*,ifstream*&,Element*); }; #endif
Generated by: wuerthne on clouseau on Fri Sep 21 19:20:46 2001, using kdoc 2.0a53. |