OMIDIV
HeaderChunk Class Reference

The midi file header. Contains meta information about the midi. More...

Inheritance diagram for HeaderChunk:
Chunk

Public Member Functions

 HeaderChunk (FileStream file)
 
- Public Member Functions inherited from Chunk
 Chunk (EMidiChunkType type, uint length)
 
 Chunk (int type, uint length)
 
 Chunk (uint type, uint length)
 
 Chunk (byte[] type, uint length)
 

Public Attributes

ushort format = 0
 
ushort ntrks = 0
 
ushort divisionU = 0
 The raw 2 bytes representing the time division exactly as in the file header.
Combines fmt, ticksPerQuarter, and ticksPerFrame
 
- Public Attributes inherited from Chunk
uint type = 0
 
uint length = 0
 

Properties

EMidiDivisionFormat fmt [get, set]
 The format that time is expressed in in this midi.
 
int ticksPerQuarter [get, set]
 The number of midi ticks per quarter note. Only meaningful if fmt is EMidiDivisionFormat.TPQN.
 
byte ticksPerFrame [get, set]
 The number of ticks per frame. Only meaningful if fmt is EMidiDivisionFormat.SMPTE.
 
EMidiSMPTEFPS smpte [get, set]
 The raw bits signifying desired frames per second. Only meaningful if fmt is EMidiDivisionFormat.SMPTE.

 
double SMPTEFPS [get]
 The number of frames per second. Only meaningful if fmt is EMidiDivisionFormat.SMPTE.

 

Detailed Description

The midi file header. Contains meta information about the midi.

Property Documentation

◆ smpte

EMidiSMPTEFPS HeaderChunk.smpte
getset

The raw bits signifying desired frames per second. Only meaningful if fmt is EMidiDivisionFormat.SMPTE.

See also
EMidiSMPTEFPS

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