|
|
Instances of classes derived from the abstract class Event are called events. Events are atoms with a well defined position and duration. The position is specified by the Position class, containing basically a long int and a lot of methods converting between the linear and the musical presentation of the position: The linear position presents the total number of ticks by one number. The musical presentation is made of the numbers denoting the bar, the beat and the number of ticks within that beat. E.g. 3.1.0 denotes the first beat (the beginning) of the third bar.
Position _pos | _pos |
[protected]
long _duration | _duration |
[protected]
Event ()
| Event |
Default constructor
Event (const Event&)
| Event |
Constructor used by copy()
Event (Position)
| Event |
Constructor at a position
Event (Position,long)
| Event |
Constructor with position and duration
const Position & internalStart ()
| internalStart |
[const]
Returns the start position (relative to the part) of an event. For the absolute start position of an event ev (within the track) use the part's method
Position pos = part->start(ev); |
The following is always true:
(part->start(ev) == part->start() + ev->internalStart()) |
long internalEnd ()
| internalEnd |
[const]
Returns the end position (relative to the part) of an event. For the absolute end position of an event ev (within the track) use the part's method
Position pos = part->end(ev); |
The following is always true:
(part->end(ev) == part->start() + ev->internalEnd()) |
long duration ()
| duration |
[const]
Returns the duration of an event.
void setInternalStart (Position)
| setInternalStart |
Sets the start position within the part. To set the absolute position pos of an event ev, use the part's method:
part->setStart(ev, pos); |
void snapStart (int i)
| snapStart |
Quantizes the position, by making use of the positions snap() method.
void setDuration (long dur)
| setDuration |
Sets the duration of an event.
ostream & print (int,ostream&)
|
[const pure virtual]
Print has to be implemented by all classes inheriting from Event.
Reimplemented from Atoma.
void flush (const char*)
| flush |
[const pure virtual]
Flush has to be implemented by all classes inheriting from Event.
Reimplemented from Atoma.
Element * copy ()
| copy |
[const pure virtual]
Copy has to be implemented by all classes inheriting from Event.
Reimplemented from Atoma.
bool isEvent ()
| isEvent |
[const virtual]
Objects of classes derived from this are events
Reimplemented from Element.
const char * value ()
| value |
[virtual]
If new events are implemented (within a new addon), this may be implemented in order to be shown in the Info box of the Score editor (other editors to follow)
Generated by: wuerthne on al on Sun Jan 6 22:32:42 2002, using kdoc 2.0a53. |