HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Midi Class Reference

#include <UT_Midi.h>

Public Member Functions

 UT_Midi ()
 
virtual ~UT_Midi ()
 
virtual int numInterfaces (int indevices)
 
virtual const char * interfaceName (int n, int indevices)
 
virtual int openPort (const char *portname, int read)
 
virtual int openFile (const char *filename, int read, fpreal start, fpreal end)
 
virtual int openFile (const char *filename, UT_Array< midiEvent > &events)
 
void closePort (int port)
 
int hasMidiInput (int port, uint64 up_to_time, UT_IntArray &channel)
 
void getMidiInput (int port, uint64 up_to_time, UT_Array< midiEvent > &midi_input, UT_IntArray &channel)
 
int sendMidiOutput (int port, UT_Array< midiEvent > &midi_output, int channel)
 
void clearQueue (int port)
 
uint64 getLastFileTime (int port)
 
virtual uint64 getTime (int port)
 
virtual void setTimerCallback (void(*callback)(void *))
 
virtual void startRecordTimer (void *, int time)
 
virtual void stopRecordTimer (void *)
 
void setPrintMessage (int)
 
virtual uint64 markOffsetTime (int port)
 
int identifySysex (const char *, int len, float *value=0)
 
void printMessage (midiEvent *)
 
int printMessages ()
 
void setBarMarkerMessage (const int *a)
 

Protected Member Functions

virtual int hasDeviceInput (int port, uint64 up_to_time, UT_IntArray &channel)
 
int hasFileInput (int port, uint64 up_to_time, UT_IntArray &channel)
 
virtual void getDeviceInput (int port, uint64 up_to_time, UT_Array< midiEvent > &midi_input, UT_IntArray &channel)
 
void getFileInput (int port, uint64 up_to_time, UT_Array< midiEvent > &midi_input, UT_IntArray &channel)
 
virtual int sendDeviceOutput (int port, UT_Array< midiEvent > &midi_output, int channel)
 
int sendFileOutput (int port, UT_Array< midiEvent > &midi_output, int channel)
 
virtual void clearDeviceQueue (int port)
 
void clearFileQueue (int port)
 
virtual void closeDevice (int port)
 
void closeFile (int port)
 

Protected Attributes

int myPrintMessageFlag
 
uint64 myLastTime
 

Detailed Description

Definition at line 161 of file UT_Midi.h.

Constructor & Destructor Documentation

UT_Midi::UT_Midi ( )
virtual UT_Midi::~UT_Midi ( )
virtual

Member Function Documentation

virtual void UT_Midi::clearDeviceQueue ( int  port)
protectedvirtual
void UT_Midi::clearFileQueue ( int  port)
protected
void UT_Midi::clearQueue ( int  port)
virtual void UT_Midi::closeDevice ( int  port)
protectedvirtual
void UT_Midi::closeFile ( int  port)
protected
void UT_Midi::closePort ( int  port)
virtual void UT_Midi::getDeviceInput ( int  port,
uint64  up_to_time,
UT_Array< midiEvent > &  midi_input,
UT_IntArray channel 
)
protectedvirtual
void UT_Midi::getFileInput ( int  port,
uint64  up_to_time,
UT_Array< midiEvent > &  midi_input,
UT_IntArray channel 
)
protected
uint64 UT_Midi::getLastFileTime ( int  port)
void UT_Midi::getMidiInput ( int  port,
uint64  up_to_time,
UT_Array< midiEvent > &  midi_input,
UT_IntArray channel 
)
virtual uint64 UT_Midi::getTime ( int  port)
virtual
virtual int UT_Midi::hasDeviceInput ( int  port,
uint64  up_to_time,
UT_IntArray channel 
)
protectedvirtual
int UT_Midi::hasFileInput ( int  port,
uint64  up_to_time,
UT_IntArray channel 
)
protected
int UT_Midi::hasMidiInput ( int  port,
uint64  up_to_time,
UT_IntArray channel 
)
int UT_Midi::identifySysex ( const char *  ,
int  len,
float *  value = 0 
)
virtual const char* UT_Midi::interfaceName ( int  n,
int  indevices 
)
virtual
virtual uint64 UT_Midi::markOffsetTime ( int  port)
virtual
virtual int UT_Midi::numInterfaces ( int  indevices)
virtual
virtual int UT_Midi::openFile ( const char *  filename,
int  read,
fpreal  start,
fpreal  end 
)
virtual
virtual int UT_Midi::openFile ( const char *  filename,
UT_Array< midiEvent > &  events 
)
virtual
virtual int UT_Midi::openPort ( const char *  portname,
int  read 
)
virtual
void UT_Midi::printMessage ( midiEvent )
int UT_Midi::printMessages ( )
inline

Definition at line 213 of file UT_Midi.h.

virtual int UT_Midi::sendDeviceOutput ( int  port,
UT_Array< midiEvent > &  midi_output,
int  channel 
)
protectedvirtual
int UT_Midi::sendFileOutput ( int  port,
UT_Array< midiEvent > &  midi_output,
int  channel 
)
protected
int UT_Midi::sendMidiOutput ( int  port,
UT_Array< midiEvent > &  midi_output,
int  channel 
)
void UT_Midi::setBarMarkerMessage ( const int a)
inline

Definition at line 215 of file UT_Midi.h.

void UT_Midi::setPrintMessage ( int  )
virtual void UT_Midi::setTimerCallback ( void(*)(void *)  callback)
virtual
virtual void UT_Midi::startRecordTimer ( void ,
int  time 
)
virtual
virtual void UT_Midi::stopRecordTimer ( void )
virtual

Member Data Documentation

uint64 UT_Midi::myLastTime
protected

Definition at line 251 of file UT_Midi.h.

int UT_Midi::myPrintMessageFlag
protected

Definition at line 249 of file UT_Midi.h.


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