|
lmms
Cross-platform music production software
|
A sequence of Alg_event objects. More...
#include <allegro.h>
Public Member Functions | |
| virtual int | length () |
| Alg_event *& | operator[] (int i) |
| Alg_events () | |
| virtual | ~Alg_events () |
| void | set_events (Alg_event **e, long l, long m) |
| void | insert (Alg_event *event) |
| for use by Alg_track and Alg_seq | |
| void | append (Alg_event *event) |
| Alg_event * | uninsert (long index) |
Public Attributes | |
| double | last_note_off |
| bool | in_use |
Protected Attributes | |
| long | len |
| Alg_event ** | events |
| events is array of pointers | |
Private Member Functions | |
| void | expand () |
Private Attributes | |
| long | maxlen |
A sequence of Alg_event objects.
|
inline |
|
virtual |
destructor deletes the events array, but not the events themselves
| void Alg_events::append | ( | Alg_event * | event | ) |
|
private |
|
inlinevirtual |
|
inline |
|
inline |
| Alg_event * Alg_events::uninsert | ( | long | index | ) |
|
protected |
events is array of pointers
| bool Alg_events::in_use |
initially false, in_use can be used to mark "do not delete". If an Alg_events instance is deleted while "in_use", an assertion will fail.
| double Alg_events::last_note_off |
sometimes, it is nice to have the time of the last note-off. In the current implementation, this field is set by append to indicate the time of the last note-off in the current unit, so it should be correct after creating a new track and adding notes to it. It is not updated after uninsert(), so use it with care.
|
protected |
|
private |