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

Midi object represents the entire content of a Midi file and is a starting point to using Midi Parser. More...

#include <Midi.h>

Public Member Functions

 Midi (const char *filePath)
 
const HeaderChunkgetHeader () const
 
const LIST< TrackChunk > & getTracks () const
 

Protected Attributes

HeaderChunk header
 
LIST< TrackChunktracks {}
 

Detailed Description

Midi object represents the entire content of a Midi file and is a starting point to using Midi Parser.

Objects of this class represent the entire contents of a Midi file and provide methods for reading the data stored in the file.

Constructor & Destructor Documentation

◆ Midi()

Midi::Midi ( const char *  filePath)
explicit

Constructs the Midi object provided the file name

Parameters
filePathFile to read Midi data from

Member Function Documentation

◆ getHeader()

const HeaderChunk & Midi::getHeader ( ) const

Returns the header of the file

Returns
Midi header object containing the header data

◆ getTracks()

const LIST< TrackChunk > & Midi::getTracks ( ) const

Returns the track list of the Midi file

Returns
A list containing the tracks in the Midi file

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