Ardour
9.0-pre0-386-g96ef4d20f2
|
#include <Note.h>
Public Member Functions | |
Note (uint8_t chan=0, Time time=Time(), Time len=Time(), uint8_t note=0, uint8_t vel=0x40) | |
Note (const Note< Time > ©) | |
~Note () | |
bool | operator== (const Note< Time > &other) |
event_id_t | id () const |
void | set_id (event_id_t) |
Time | time () const |
Time | end_time () const |
uint8_t | note () const |
uint8_t | velocity () const |
uint8_t | off_velocity () const |
Time | length () const |
uint8_t | channel () const |
void | set_time (Time t) |
void | set_note (uint8_t n) |
void | set_velocity (uint8_t n) |
void | set_off_velocity (uint8_t n) |
void | set_length (Time l) |
void | set_channel (uint8_t c) |
Event< Time > & | on_event () |
const Event< Time > & | on_event () const |
Event< Time > & | off_event () |
const Event< Time > & | off_event () const |
Private Member Functions | |
const Note< Time > & | operator= (const Note< Time > ©) |
uint8_t | clamp (int val, int low, int high) |
Private Attributes | |
Event< Time > | _on_event |
Event< Time > | _off_event |
An abstract (protocol agnostic) note.
Currently a note is defined as (on event, length, off event).
Evoral::Note< Time >::Note | ( | uint8_t | chan = 0 , |
Time | time = Time() , |
||
Time | len = Time() , |
||
uint8_t | note = 0 , |
||
uint8_t | vel = 0x40 |
||
) |
Evoral::Note< Time >::Note | ( | const Note< Time > & | copy | ) |
Evoral::Note< Time >::~Note | ( | ) |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
|
inline |
void Evoral::Note< Time >::set_id | ( | event_id_t | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |