|
AuLib
1.0beta
|
#include <MidiIn.h>


Public Member Functions | |
| MidiIn () | |
| ~MidiIn () | |
| uint32_t | open (int dev) |
| void | close () |
| template<typename... Targs> | |
| const MidiIn & | listen (Targs &... args) |
| double | ctlval (int32_t chn, uint32_t num) |
| double | aftval (int32_t chn, uint32_t num) |
| double | aftval (int32_t chn) |
| uint32_t | program (int32_t chn) |
| uint32_t | read () |
| const std::vector< std::string > & | device_list () |
Public Member Functions inherited from AuLib::AudioBase | |
| AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr) | |
| virtual const AudioBase & | operator*= (double scal) |
| virtual const AudioBase & | operator*= (const double *sig) |
| virtual const AudioBase & | operator*= (const AudioBase &obj) |
| virtual const AudioBase & | operator+= (double offs) |
| virtual const AudioBase & | operator+= (const double *sig) |
| virtual const AudioBase & | operator+= (const AudioBase &obj) |
| double & | operator[] (uint32_t ndx) |
| const double & | operator[] (uint32_t ndx) const |
| iterator | begin () |
| iterator | end () |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| const AudioBase & | set (const AudioBase &obj) |
| const AudioBase & | set (const double *sig) |
| const double * | set (double v) |
| double | set (double v, uint32_t p) |
| operator const std::vector< double > & () const | |
| operator const double * () const | |
| const double * | vector () const |
| double | vector (uint32_t frndx, uint32_t chn) const |
| uint32_t | vframes (uint32_t frames) |
| uint32_t | resize_exact (uint32_t frames) |
| uint32_t | vframes () const |
| uint32_t | vsamps () const |
| uint32_t | nchnls () const |
| uint32_t | sr () const |
| uint32_t | error () const |
| virtual const char * | error_message () const |
Additional Inherited Members | |
Public Types inherited from AuLib::AudioBase | |
| typedef std::vector< double >::iterator | iterator |
| typedef std::vector< double >::const_iterator | const_iterator |
Protected Attributes inherited from AuLib::AudioBase | |
| uint32_t | m_nchnls |
| uint32_t | m_vframes |
| std::vector< double > | m_vector |
| double | m_sr |
| uint32_t | m_error |
This class implements a MIDI input listener
| AuLib::MidiIn::MidiIn | ( | ) |
Constructs an empty object
| AuLib::MidiIn::~MidiIn | ( | ) |
Destructor
|
inline |
returns a MIDI aftertouch value for channel chn and note num, chn < 0 means all channels.
Results in the range [0.,1.)
|
inline |
returns a MIDI aftertouch value for channel chn, chn < 0 means all channels.
Results in the range [0.,1.)
| void AuLib::MidiIn::close | ( | ) |
Close MIDI connection
|
inline |
returns a MIDI control value for channel chn and control num, chn < 0 means all channels.
Results in the range [0.,1.)
|
inline |
Returns a list of devices names/numbers as strings
|
inline |
Implements a listener for an obj inst dispatching any received data. Classes implementing the dispatch & process methods are valid types for arguments here.
| uint32_t AuLib::MidiIn::open | ( | int | dev | ) |
Open MIDI input device dev
|
inline |
returns a MIDI program value for channel chn, chn < 0 means all channels.
| uint32_t AuLib::MidiIn::read | ( | ) |
read MIDI input, returning number of MIDI events read.
Only needs to be called if listen() is not used
1.8.13