Real Time Open Sound Control librtosc
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
rtosc::MidiTable< len, elms > Struct Template Reference

#include <miditable.h>

Public Member Functions

 MidiTable (Ports &_dispatch_root)
 
bool has (uint8_t ch, uint8_t ctl) const
 
MidiAddr< len > * get (uint8_t ch, uint8_t ctl)
 
const MidiAddr< len > * get (uint8_t ch, uint8_t ctl) const
 
bool mash_port (MidiAddr< len > &e, const Port &port)
 
void addElm (uint8_t ch, uint8_t ctl, const char *path)
 
void check_learn (void)
 
void learn (const char *s)
 
void process (uint8_t ch, uint8_t ctl, uint8_t val)
 

Static Public Member Functions

static float translate (uint8_t val, const char *meta)
 
static void black_hole2 (const char *, const char *)
 
static void black_hole1 (const char *)
 

Public Attributes

std::array< MidiAddr< len >, elms > table
 
Portsdispatch_root
 
short unhandled_ch
 
short unhandled_ctl
 
char unhandled_path [len]
 
void(* error_cb )(const char *, const char *)
 
void(* event_cb )(const char *)
 

Detailed Description

template<int len, int elms>
struct rtosc::MidiTable< len, elms >

Table of midi mappings

Constructor & Destructor Documentation

template<int len, int elms>
rtosc::MidiTable< len, elms >::MidiTable ( Ports _dispatch_root)
inline

Member Function Documentation

template<int len, int elms>
void rtosc::MidiTable< len, elms >::addElm ( uint8_t  ch,
uint8_t  ctl,
const char *  path 
)
inline
template<int len, int elms>
static void rtosc::MidiTable< len, elms >::black_hole1 ( const char *  )
inlinestatic
template<int len, int elms>
static void rtosc::MidiTable< len, elms >::black_hole2 ( const char *  ,
const char *   
)
inlinestatic
template<int len, int elms>
void rtosc::MidiTable< len, elms >::check_learn ( void  )
inline
template<int len, int elms>
MidiAddr<len>* rtosc::MidiTable< len, elms >::get ( uint8_t  ch,
uint8_t  ctl 
)
inline
template<int len, int elms>
const MidiAddr<len>* rtosc::MidiTable< len, elms >::get ( uint8_t  ch,
uint8_t  ctl 
) const
inline
template<int len, int elms>
bool rtosc::MidiTable< len, elms >::has ( uint8_t  ch,
uint8_t  ctl 
) const
inline
template<int len, int elms>
void rtosc::MidiTable< len, elms >::learn ( const char *  s)
inline
template<int len, int elms>
bool rtosc::MidiTable< len, elms >::mash_port ( MidiAddr< len > &  e,
const Port port 
)
inline
template<int len, int elms>
void rtosc::MidiTable< len, elms >::process ( uint8_t  ch,
uint8_t  ctl,
uint8_t  val 
)
inline
template<int len, int elms>
static float rtosc::MidiTable< len, elms >::translate ( uint8_t  val,
const char *  meta 
)
inlinestatic

Member Data Documentation

template<int len, int elms>
Ports& rtosc::MidiTable< len, elms >::dispatch_root
template<int len, int elms>
void(* rtosc::MidiTable< len, elms >::error_cb)(const char *, const char *)
template<int len, int elms>
void(* rtosc::MidiTable< len, elms >::event_cb)(const char *)
template<int len, int elms>
std::array<MidiAddr<len>,elms> rtosc::MidiTable< len, elms >::table
template<int len, int elms>
short rtosc::MidiTable< len, elms >::unhandled_ch
template<int len, int elms>
short rtosc::MidiTable< len, elms >::unhandled_ctl
template<int len, int elms>
char rtosc::MidiTable< len, elms >::unhandled_path[len]

The documentation for this struct was generated from the following file: