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

Represents variable-length quantity of the MTrkEvent. More...

#include <VLQ.h>

Public Member Functions

 VLQ ()=default
 
 VLQ (const char *filePath, long addr)
 
uint32_t getData () const
 
uint8_t getByteLength () const
 

Protected Attributes

uint32_t data {}
 
uint8_t length {}
 

Detailed Description

Represents variable-length quantity of the MTrkEvent.

Constructor & Destructor Documentation

◆ VLQ() [1/2]

VLQ::VLQ ( )
default

Default constructor

◆ VLQ() [2/2]

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

Reads the Midi file and constructs the VLQ object

Parameters
filePathPath to the Midi file to read
addrAddress of the VLQ data in bytes

Member Function Documentation

◆ getByteLength()

uint8_t VLQ::getByteLength ( ) const

Returns the VLQ length

Returns
Length of the VLQ in bytes

◆ getData()

uint32_t VLQ::getData ( ) const

Returns the VLQ value

Returns
The value of the VLQ

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