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

Stores the Midi event along with delta-time. More...

#include <MTrkEvent.h>

Public Member Functions

 MTrkEvent (const char *filePath, long addr)
 
 MTrkEvent (const MTrkEvent &event)
 
 ~MTrkEvent ()
 
const VLQgetDeltaTime () const
 
const EventgetEvent () const
 
long getByteLength () const
 

Protected Attributes

VLQ deltaTime {}
 
Eventevent {}
 
long byteLength {}
 

Detailed Description

Stores the Midi event along with delta-time.

Constructor & Destructor Documentation

◆ MTrkEvent() [1/2]

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

Reads Midi file and constructs an MTrkEvent object

Parameters
filePath
addr

◆ MTrkEvent() [2/2]

MTrkEvent::MTrkEvent ( const MTrkEvent event)

Copies the MTrkEvent object

Parameters
eventThe MTrkEvent to copy

◆ ~MTrkEvent()

MTrkEvent::~MTrkEvent ( )

Destroys the MTrkEvent object

Member Function Documentation

◆ getByteLength()

long MTrkEvent::getByteLength ( ) const

Returns the length of MTrkEvent

Returns
Length of MTrkEvent in bytes

◆ getDeltaTime()

const VLQ & MTrkEvent::getDeltaTime ( ) const

Returns the MTrkEvent delta-time

Returns
Delta-time of the MTrkEvent

◆ getEvent()

const Event * MTrkEvent::getEvent ( ) const

Returns the Event of the MTrkEvent

Returns
Pointer to the Event object

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