LMMS
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 *)
 copy constructor
 Alg_note ()
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

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_ptr 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 * )

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_ptr 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: