lmms
Cross-platform music production software
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 *update)
 copy constructor
 Alg_update ()
void show () override
Public Member Functions inherited from Alg_event
bool is_note ()
 Check whether an Alg_event is a note.
bool is_update ()
 Check whether an Alg_event is a parameter update.
char get_type ()
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 *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)
 Get the associated attribute type.
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)
 Delete an attribute/value pair.
const char * get_attribute ()
 get the update's attribute (string)
char get_update_type ()
 Get the update's type.
const char * get_string_value ()
 Get the update's 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 ()
 Get the update's atom value.
bool overlap (double t, double len, bool all)
const char * GetDescription ()
 Computes a text description of this event.
 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 * 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: