Ardour  9.0-pre0-386-g96ef4d20f2
Evoral::Note< Time > Class Template Reference

#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 > &copy)
 
 ~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 > &copy)
 
uint8_t clamp (int val, int low, int high)
 

Private Attributes

Event< Time > _on_event
 
Event< Time > _off_event
 

Detailed Description

template<typename Time>
class Evoral::Note< Time >

An abstract (protocol agnostic) note.

Currently a note is defined as (on event, length, off event).

Definition at line 42 of file Note.h.

Constructor & Destructor Documentation

◆ Note() [1/2]

template<typename Time >
Evoral::Note< Time >::Note ( uint8_t  chan = 0,
Time  time = Time(),
Time  len = Time(),
uint8_t  note = 0,
uint8_t  vel = 0x40 
)

◆ Note() [2/2]

template<typename Time >
Evoral::Note< Time >::Note ( const Note< Time > &  copy)

◆ ~Note()

template<typename Time >
Evoral::Note< Time >::~Note ( )

Member Function Documentation

◆ channel()

template<typename Time >
uint8_t Evoral::Note< Time >::channel ( ) const
inline

Definition at line 67 of file Note.h.

◆ clamp()

template<typename Time >
uint8_t Evoral::Note< Time >::clamp ( int  val,
int  low,
int  high 
)
inlineprivate

Definition at line 75 of file Note.h.

◆ end_time()

template<typename Time >
Time Evoral::Note< Time >::end_time ( ) const
inline

Definition at line 62 of file Note.h.

◆ id()

template<typename Time >
event_id_t Evoral::Note< Time >::id ( ) const
inline

Definition at line 58 of file Note.h.

◆ length()

template<typename Time >
Time Evoral::Note< Time >::length ( ) const
inline

Definition at line 66 of file Note.h.

◆ note()

template<typename Time >
uint8_t Evoral::Note< Time >::note ( ) const
inline

Definition at line 63 of file Note.h.

◆ off_event() [1/2]

template<typename Time >
Event<Time>& Evoral::Note< Time >::off_event ( )
inline

Definition at line 108 of file Note.h.

◆ off_event() [2/2]

template<typename Time >
const Event<Time>& Evoral::Note< Time >::off_event ( ) const
inline

Definition at line 109 of file Note.h.

◆ off_velocity()

template<typename Time >
uint8_t Evoral::Note< Time >::off_velocity ( ) const
inline

Definition at line 65 of file Note.h.

◆ on_event() [1/2]

template<typename Time >
Event<Time>& Evoral::Note< Time >::on_event ( )
inline

Definition at line 106 of file Note.h.

◆ on_event() [2/2]

template<typename Time >
const Event<Time>& Evoral::Note< Time >::on_event ( ) const
inline

Definition at line 107 of file Note.h.

◆ operator=()

template<typename Time >
const Note<Time>& Evoral::Note< Time >::operator= ( const Note< Time > &  copy)
private

◆ operator==()

template<typename Time >
bool Evoral::Note< Time >::operator== ( const Note< Time > &  other)
inline

Definition at line 49 of file Note.h.

◆ set_channel()

template<typename Time >
void Evoral::Note< Time >::set_channel ( uint8_t  c)
inline

Definition at line 100 of file Note.h.

◆ set_id()

template<typename Time >
void Evoral::Note< Time >::set_id ( event_id_t  )

◆ set_length()

template<typename Time >
void Evoral::Note< Time >::set_length ( Time  l)
inline

Definition at line 97 of file Note.h.

◆ set_note()

template<typename Time >
void Evoral::Note< Time >::set_note ( uint8_t  n)
inline

Definition at line 86 of file Note.h.

◆ set_off_velocity()

template<typename Time >
void Evoral::Note< Time >::set_off_velocity ( uint8_t  n)
inline

Definition at line 94 of file Note.h.

◆ set_time()

template<typename Time >
void Evoral::Note< Time >::set_time ( Time  t)
inline

Definition at line 82 of file Note.h.

◆ set_velocity()

template<typename Time >
void Evoral::Note< Time >::set_velocity ( uint8_t  n)
inline

Definition at line 91 of file Note.h.

◆ time()

template<typename Time >
Time Evoral::Note< Time >::time ( ) const
inline

Definition at line 61 of file Note.h.

◆ velocity()

template<typename Time >
uint8_t Evoral::Note< Time >::velocity ( ) const
inline

Definition at line 64 of file Note.h.

Member Data Documentation

◆ _off_event

template<typename Time >
Event<Time> Evoral::Note< Time >::_off_event
private

Definition at line 114 of file Note.h.

◆ _on_event

template<typename Time >
Event<Time> Evoral::Note< Time >::_on_event
private

Definition at line 113 of file Note.h.


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