lmms
Cross-platform music production software
Loading...
Searching...
No Matches
Alg_note Class Reference

#include <allegro.h>

Inheritance diagram for Alg_note:
Alg_event

Public Member Functions

 ~Alg_note () override
 Alg_note (Alg_note *note)
 copy constructor
 Alg_note ()
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

float pitch
 pitch in semitones (69 = A440)
float loud
 dynamic corresponding to MIDI velocity
double dur
 duration in seconds (normally to release point)
Alg_parameters * parameters
 attribute/value pair list
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_note()

Alg_note::~Alg_note ( )
override

◆ Alg_note() [1/2]

Alg_note::Alg_note ( Alg_note * note)

copy constructor

◆ Alg_note() [2/2]

Alg_note::Alg_note ( )
inline

Member Function Documentation

◆ show()

void Alg_note::show ( )
overridevirtual

Implements Alg_event.

Member Data Documentation

◆ dur

double Alg_note::dur

duration in seconds (normally to release point)

◆ loud

float Alg_note::loud

dynamic corresponding to MIDI velocity

◆ parameters

Alg_parameters* Alg_note::parameters

attribute/value pair list

◆ pitch

float Alg_note::pitch

pitch in semitones (69 = A440)


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