LMMS
Loading...
Searching...
No Matches
Alg_update Class Reference

#include <allegro.h>

Inheritance diagram for Alg_update:
Alg_event

Public Member Functions

 ~Alg_update () override=default
 Alg_update (Alg_update *)
 copy constructor
 Alg_update ()
void show () override
Public Member Functions inherited from Alg_event
bool is_note ()
 tell whether an Alg_event is a note
bool is_update ()
 tell whether an Alg_event is a parameter update
char get_type ()
 return 'n' for note, 'u' for update
int get_type_code ()
bool get_selected ()
void set_selected (bool b)
long get_identifier ()
 get MIDI key or note identifier of note or update
void set_identifier (long i)
void set_parameter (Alg_parameter_ptr new_parameter)
void set_string_value (const char *attr, const char *value)
void set_real_value (const char *attr, double value)
void set_logical_value (const char *attr, bool value)
void set_integer_value (const char *attr, int32_t value)
void set_atom_value (const char *attr, const char *atom)
float get_pitch ()
 get pitch in steps – use this even for MIDI
float get_loud ()
 get loudness (MIDI velocity)
double get_start_time ()
 get start time in seconds or beats
double get_end_time ()
 get end time in seconds or beats
double get_duration ()
 get duration in seconds or beats
void set_pitch (float)
void set_loud (float)
void set_duration (double)
bool has_attribute (const char *attr)
 test if note has attribute/value pair
char get_attribute_type (const char *attr)
const char * get_string_value (const char *attr, const char *value=nullptr)
 get the string value
double get_real_value (const char *attr, double value=0.0)
 get the real value
bool get_logical_value (const char *attr, bool value=false)
 get the logical value
long get_integer_value (const char *attr, int32_t value=0)
 get the integer value
const char * get_atom_value (const char *attr, const char *value=nullptr)
 get the atom value
void delete_attribute (const char *attr)
 (ignore if no matching attribute/value pair exists)
const char * get_attribute ()
 get the update's attribute (string)
char get_update_type ()
const char * get_string_value ()
double get_real_value ()
 get the update's real value
bool get_logical_value ()
 get the update's logical value
int32_t get_integer_value ()
 get the update's integer value
const char * get_atom_value ()
bool overlap (double t, double len, bool all)
const char * GetDescription ()
 the result is in a static buffer, not thread-safe, just for debugging.
 Alg_event ()
virtual ~Alg_event ()=default

Public Attributes

Alg_parameter parameter
 an update contains one attr/value pair
Public Attributes inherited from Alg_event
double time
long chan

Additional Inherited Members

Protected Attributes inherited from Alg_event
bool selected
char type
 'e' event, 'n' note, 'u' update
long key
 note identifier
Static Protected Attributes inherited from Alg_event
static const char * description
 static buffer for debugging (in Alg_event)

Constructor & Destructor Documentation

◆ ~Alg_update()

Alg_update::~Alg_update ( )
overridedefault

◆ Alg_update() [1/2]

Alg_update::Alg_update ( Alg_update * )

copy constructor

◆ Alg_update() [2/2]

Alg_update::Alg_update ( )
inline

Member Function Documentation

◆ show()

void Alg_update::show ( )
overridevirtual

Implements Alg_event.

Member Data Documentation

◆ parameter

Alg_parameter Alg_update::parameter

an update contains one attr/value pair


The documentation for this class was generated from the following files: