NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
dump_tracks.h File Reference

Contains the definition of some helper functions which can be useful for debugging purposes. More...

#include <iostream>
#include "multitrack.h"
#include "matrix.h"

Go to the source code of this file.

Functions

Helper functions for viewing messages content
void SetChanFrom (unsigned char c=0)
 Sets the numbering of MIDI channels when messages are printed. More...
 
void DumpMIDITimedMessage (MIDITimedMessage *const msg, std::ostream &ost=std::cout)
 Prints a readable string describing the contents of the given MIDIMessage (or MIDITimedMessage). More...
 
void DumpMIDITrack (MIDITrack *const trk, std::ostream &ost=std::cout)
 Prints a list of all the MIDI messages in the given MIDItrack. More...
 
int DumpMIDITrackAttr (MIDITrack *const trk, int num, std::ostream &ost=std::cout)
 Prints the main properties of the given MIDItrack. More...
 
int DumpMIDITrackAttrVerbose (MIDITrack *const trk, int num, std::ostream &ost=std::cout)
 Prints all the properties of the given MIDItrack. More...
 
void DumpAllTracks (MIDIMultiTrack *const mlt, std::ostream &ost=std::cout)
 Prints a list of all MIDI messages in the given MIDIMultiTrack, a track at once. More...
 
void DumpMIDIMultiTrack (MIDIMultiTrack *const mlt, std::ostream &ost=std::cout)
 Prints a list of all MIDI messages in the given MIDIMultiTrack in temporal order. More...
 
Other helper functions
void CheckMIDIMatrix (const MIDIMatrix &matrix, std::ostream &ost=std::cout)
 Helper function which shows the contents of a MIDIMatrix. More...
 

Detailed Description

Contains the definition of some helper functions which can be useful for debugging purposes.