NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
MIDIFileHeader Struct Reference

A structure holding data which represent the header of a MIDI file. More...

#include <fileread.h>

Public Attributes

short format
 The file format (currently only 0 and 1 are allowed by the library). More...
 
short ntrks
 The number of tracks. More...
 
short division
 The number of MIDI ticks for a quarter note. More...
 
std::string filename
 The file name. More...
 

Detailed Description

A structure holding data which represent the header of a MIDI file.

This is useful if you want to load a file, edit it and then save it with the same format and name (the AdvancedSequencer class does this automatically when it loads and saves MIDI files). You can get the header of a MIDI file with the GetMIDIFileHeader() global function; see also LoadMIDIFile().

Member Data Documentation

◆ format

short MIDIFileHeader::format

The file format (currently only 0 and 1 are allowed by the library).

◆ ntrks

short MIDIFileHeader::ntrks

The number of tracks.

◆ division

short MIDIFileHeader::division

The number of MIDI ticks for a quarter note.

◆ filename

std::string MIDIFileHeader::filename

The file name.


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