Midi Parser
A simple library that reads and parses binary MIDI files
TrackChunk Class Reference

Contains track data. More...

#include <TrackChunk.h>

Inheritance diagram for TrackChunk:
BaseChunk

Public Member Functions

 TrackChunk (const char *filePath, long addr)
 
const LIST< MTrkEvent > & getEvents () const
 
- Public Member Functions inherited from BaseChunk
 BaseChunk (const char *filePath, long addr)
 
 BaseChunk (const BaseChunk &chunk)
 
 ~BaseChunk ()
 
char * getName () const
 
int getLength () const
 
long getByteLength () const
 

Protected Attributes

LIST< MTrkEventevents {}
 
- Protected Attributes inherited from BaseChunk
char * name {}
 
uint32_t length {}
 
long byteLength {}
 

Detailed Description

Contains track data.

Constructor & Destructor Documentation

◆ TrackChunk()

TrackChunk::TrackChunk ( const char *  filePath,
long  addr 
)

Reads the Midi file and constructs the chunk object

Parameters
filePathPath to the Midi file to read
addrAddress of the chunk in bytes

Member Function Documentation

◆ getEvents()

const LIST< MTrkEvent > & TrackChunk::getEvents ( ) const

Returns track events

Returns
List of the track events

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