Raul::SMFWriter Class Reference

Standard Midi File (Type 0) Writer. More...

#include <SMFWriter.hpp>

Inherits Raul::MIDISink.

List of all members.

Public Member Functions

 SMFWriter (unsigned short ppqn=1920)
bool start (const std::string &filename, BeatTime start_time=0) throw (std::logic_error)
uint16_t ppqn () const
void write_event (BeatTime time, size_t ev_size, const unsigned char *ev) throw (std::logic_error)
void flush ()
void finish () throw (std::logic_error)

Protected Member Functions

void write_header ()
void write_footer ()
void write_chunk_header (const char id[4], uint32_t length)
void write_chunk (const char id[4], uint32_t length, void *data)
size_t write_var_len (uint32_t val)

Protected Attributes

std::string _filename
FILE * _fd
uint16_t _ppqn
Raul::BeatTime _start_time
Raul::BeatTime _last_ev_time
 Time last event was written relative to _start_time.
uint32_t _track_size
uint32_t _header_size
 size of SMF header, including MTrk chunk header

Static Protected Attributes

static const uint32_t VAR_LEN_MAX = 0x0FFFFFFF


Detailed Description

Standard Midi File (Type 0) Writer.


The documentation for this class was generated from the following file:
Generated on Wed Apr 9 08:14:41 2008 for RAUL by  doxygen 1.5.1