Csound and CsoundAC API  5.17
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes | Static Protected Attributes
Alg_track Class Reference

#include <allegro.h>

+ Inheritance diagram for Alg_track:

Public Member Functions

virtual void add (Alg_event *event)
 Alg_track ()
 Alg_track (Alg_time_map *map, bool seconds)
 Alg_track (Alg_track &track)
 Alg_track (Alg_event_list_ref event_list, Alg_time_map_ptr map, bool units_are_seconds)
void append (Alg_event_ptr event)
virtual void clear (double t, double len, bool all)
virtual void convert_to_beats ()
virtual void convert_to_seconds ()
virtual Alg_trackcopy (double t, double len, bool all)
Alg_event_ptr copy_event (Alg_event_ptr event)
Alg_notecreate_note (double time, int channel, int identifier, float pitch, float loudness, double duration)
Alg_updatecreate_update (double time, int channel, int identifier)
virtual Alg_trackcut (double t, double len, bool all)
virtual Alg_event_listfind (double t, double len, bool all, long channel_mask, long event_type_mask)
double get_beat_dur ()
double get_dur ()
const char * get_last_error_message ()
Alg_trackget_owner ()
double get_real_dur ()
Alg_time_mapget_time_map ()
char get_type ()
bool get_units_are_seconds ()
void insert (Alg_event_ptr event)
virtual void insert_silence (double t, double len)
virtual int length ()
virtual void merge (double t, Alg_event_list_ptr seq)
virtual Alg_event_ptroperator[] (int i)
virtual void paste (double t, Alg_event_list *seq)
virtual void serialize (void **buffer, long *bytes)
void serialize_track ()
void set_beat_dur (double d)
void set_dur (double dur)
void set_events (Alg_event_ptr *e, long l, long m)
virtual void set_in_use (bool flag)
void set_real_dur (double d)
virtual void set_start_time (Alg_event *event, double)
virtual void set_time_map (Alg_time_map *map)
virtual void silence (double t, double len, bool all)
Alg_seq_ptr to_alg_seq ()
Alg_event_ptr uninsert (long index)
void unserialize_track ()
virtual ~Alg_track ()

Static Public Member Functions

static Alg_trackunserialize (void *buffer, long len)

Data Fields

bool in_use
double last_note_off

Protected Member Functions

double get_double (char **p, long *b)
float get_float (char **p, long *b)
long get_int32 (char **p, long *b)
char * get_string (char **p, long *b)
void serialize_parameter (Alg_parameter *parm)
void unserialize_parameter (Alg_parameter_ptr parm_ptr)

Protected Attributes

double beat_dur
Alg_event_ptrevents
Alg_trackevents_owner
long len
double real_dur
int sequence_number
Alg_time_maptime_map
char type
bool units_are_seconds

Static Protected Attributes

static const char * last_error_message
static int sequences
static Serial_read_buffer ser_read_buf
static Serial_write_buffer ser_write_buf

Constructor & Destructor Documentation

Alg_track::Alg_track ( ) [inline]
Alg_track::Alg_track ( Alg_time_map map,
bool  seconds 
)
Alg_track::Alg_track ( Alg_event_list_ref  event_list,
Alg_time_map_ptr  map,
bool  units_are_seconds 
)
virtual Alg_track::~Alg_track ( ) [inline, virtual]

Member Function Documentation

virtual void Alg_track::add ( Alg_event event) [inline, virtual]

References Alg_events::insert().

void Alg_events::append ( Alg_event_ptr  event) [inherited]
virtual void Alg_track::clear ( double  t,
double  len,
bool  all 
) [virtual]

Reimplemented in Alg_seq.

virtual void Alg_track::convert_to_beats ( ) [virtual]

Reimplemented in Alg_seq.

virtual void Alg_track::convert_to_seconds ( ) [virtual]

Reimplemented in Alg_seq.

virtual Alg_track* Alg_track::copy ( double  t,
double  len,
bool  all 
) [virtual]

Reimplemented in Alg_seq.

Alg_note* Alg_track::create_note ( double  time,
int  channel,
int  identifier,
float  pitch,
float  loudness,
double  duration 
)
Alg_update* Alg_track::create_update ( double  time,
int  channel,
int  identifier 
)
virtual Alg_track* Alg_track::cut ( double  t,
double  len,
bool  all 
) [virtual]

Reimplemented in Alg_seq.

virtual Alg_event_list* Alg_track::find ( double  t,
double  len,
bool  all,
long  channel_mask,
long  event_type_mask 
) [virtual]
double Alg_event_list::get_beat_dur ( ) [inline, inherited]
double Alg_track::get_double ( char **  p,
long *  b 
) [protected]
double Alg_track::get_dur ( ) [inline]
float Alg_track::get_float ( char **  p,
long *  b 
) [protected]
long Alg_track::get_int32 ( char **  p,
long *  b 
) [protected]
const char* Alg_event_list::get_last_error_message ( ) [inline, inherited]
Alg_track* Alg_event_list::get_owner ( ) [inline, inherited]
double Alg_event_list::get_real_dur ( ) [inline, inherited]
char* Alg_track::get_string ( char **  p,
long *  b 
) [protected]

References time_map.

Referenced by Alg_seq::add_track().

char Alg_event_list::get_type ( ) [inline, inherited]

References Alg_event_list::type.

Referenced by to_alg_seq().

References units_are_seconds.

void Alg_events::insert ( Alg_event_ptr  event) [inherited]

Referenced by add().

virtual void Alg_track::insert_silence ( double  t,
double  len 
) [virtual]

Reimplemented in Alg_seq.

virtual int Alg_events::length ( ) [inline, virtual, inherited]

References Alg_events::len.

virtual void Alg_track::merge ( double  t,
Alg_event_list_ptr  seq 
) [virtual]

Reimplemented in Alg_seq.

virtual Alg_event_ptr& Alg_track::operator[] ( int  i) [inline, virtual]

Reimplemented from Alg_event_list.

Reimplemented in Alg_seq.

References Alg_events::events, and Alg_events::len.

virtual void Alg_track::paste ( double  t,
Alg_event_list seq 
) [virtual]
virtual void Alg_track::serialize ( void **  buffer,
long *  bytes 
) [virtual]

Reimplemented in Alg_seq.

void Alg_track::serialize_parameter ( Alg_parameter parm) [protected]
void Alg_event_list::set_beat_dur ( double  d) [inline, inherited]
void Alg_track::set_dur ( double  dur)
void Alg_events::set_events ( Alg_event_ptr e,
long  l,
long  m 
) [inline, inherited]
virtual void Alg_track::set_in_use ( bool  flag) [inline, virtual]

Reimplemented in Alg_seq.

References Alg_events::in_use.

void Alg_event_list::set_real_dur ( double  d) [inline, inherited]
virtual void Alg_event_list::set_start_time ( Alg_event event,
double   
) [virtual, inherited]
virtual void Alg_track::set_time_map ( Alg_time_map map) [virtual]

Reimplemented in Alg_seq.

Referenced by Alg_track().

virtual void Alg_track::silence ( double  t,
double  len,
bool  all 
) [virtual]

Reimplemented in Alg_seq.

References Alg_event_list::get_type(), and NULL.

Alg_event_ptr Alg_events::uninsert ( long  index) [inherited]
static Alg_track* Alg_track::unserialize ( void *  buffer,
long  len 
) [static]
void Alg_track::unserialize_parameter ( Alg_parameter_ptr  parm_ptr) [protected]

Field Documentation

double Alg_event_list::beat_dur [protected, inherited]
Alg_event_ptr* Alg_events::events [protected, inherited]
Alg_track* Alg_event_list::events_owner [protected, inherited]
bool Alg_events::in_use [inherited]
const char* Alg_event_list::last_error_message [static, protected, inherited]
double Alg_events::last_note_off [inherited]

Referenced by Alg_events::Alg_events().

long Alg_events::len [protected, inherited]
double Alg_event_list::real_dur [protected, inherited]
int Alg_event_list::sequence_number [protected, inherited]
int Alg_event_list::sequences [static, protected, inherited]

Referenced by Alg_track(), get_time_map(), and ~Alg_track().

char Alg_event_list::type [protected, inherited]
bool Alg_track::units_are_seconds [protected]