# libkmid Globals |
Annotated List
Files
Globals
Hierarchy
Index

### alsaout.h

- typedef struct snd_seq_event snd_seq_event_t

### dattypes.h

- typedef unsigned char uchar
- typedef unsigned short ushort
- typedef unsigned long ulong
- ushort readShort (FILE *fh)
- ulong readLong (FILE *fh)
- void printfdebug (const char *s,int a=0,int b=0, int c=0)
- void printfdebug (const char *s,int a,long b)
- void printfdebug (const char *s,double a,double b=0, double c=0)

### libkmid.h

- int kMidInit (void)
- int kMidLoad (const char *filename)
- int kMidPlay (void)
- int kMidStop (void)
- void kMidDestruct (void)
- int kMidIsPlaying (void)
- int kMidDevices (void)
- const char * kMidName (int i)
- const char * kMidType (int i)
- void kMidSetDevice (int i)
- void kMidSetMidiMapper (const char *mapfilename)
- const char * kMidVersion (void)
- const char * kMidCopyright (void)

### midfile.h

- double tempoToMetronomeTempo (ulong x)
- double metronomeTempoToTempo (ulong x)
- MidiTrack ** readMidiFile ( const char *name, MidiFileInfo *info, int &ok)
- void parseInfoData ( MidiFileInfo *info, MidiTrack **tracks, float ratioTempo)
- void parsePatchesUsed ( MidiTrack **tracks, MidiFileInfo *info, int gm)

## Global member Documentation

typedef struct snd_seq_event snd_seq_event_t | ### snd_seq_event_t

`#include <alsaout.h>`

typedef unsigned char uchar | ### uchar

`#include <dattypes.h>`

Unsigned char

typedef unsigned short ushort | ### ushort

`#include <dattypes.h>`

Unsigned short

typedef unsigned long ulong | ### ulong

`#include <dattypes.h>`

Unsigned long

ushort readShort (FILE *fh) | ### readShort

`#include <dattypes.h>`

ulong readLong (FILE *fh) | ### readLong

`#include <dattypes.h>`

void printfdebug (const char *s,int a=0,int b=0, int c=0) | ### printfdebug

`#include <dattypes.h>`

void printfdebug (const char *s,int a,long b) | ### printfdebug

`#include <dattypes.h>`

void printfdebug (const char *s,double a,double b=0, double c=0) | ### printfdebug

`#include <dattypes.h>`

int kMidInit (void) | ### kMidInit

`#include <libkmid.h>`

int kMidLoad (const char *filename) | ### kMidLoad

`#include <libkmid.h>`

int kMidPlay (void) | ### kMidPlay

`#include <libkmid.h>`

int kMidStop (void) | ### kMidStop

`#include <libkmid.h>`

void kMidDestruct (void) | ### kMidDestruct

`#include <libkmid.h>`

int kMidIsPlaying (void) | ### kMidIsPlaying

`#include <libkmid.h>`

int kMidDevices (void) | ### kMidDevices

`#include <libkmid.h>`

const char * kMidName (int i) | ### kMidName

`#include <libkmid.h>`

const char * kMidType (int i) | ### kMidType

`#include <libkmid.h>`

void kMidSetDevice (int i) | ### kMidSetDevice

`#include <libkmid.h>`

void kMidSetMidiMapper (const char *mapfilename) | ### kMidSetMidiMapper

`#include <libkmid.h>`

const char * kMidVersion (void) | ### kMidVersion

`#include <libkmid.h>`

const char * kMidCopyright (void) | ### kMidCopyright

`#include <libkmid.h>`

double tempoToMetronomeTempo (ulong x) | ### tempoToMetronomeTempo

`#include <midfile.h>`

Patches used in the MIDI file.

In each position of the array it stores the number of times the corresponding patch is used. So, if a MIDI file plays 782 notes with a piano, patchesUsed[0] will store 782. In the same way, if it doesn't use the Music Box patch, patchesUsed[10] will be 0.

double metronomeTempoToTempo (ulong x) | ### metronomeTempoToTempo

`#include <midfile.h>`

MidiTrack ** readMidiFile ( const char *name, MidiFileInfo *info, int &ok) | ### readMidiFile

`#include <midfile.h>`

Reads a midi file.

Parameters:

name | the filename of the midi file to load.
info | a pointer to the MidiFileInfo struct that will be filled with the information of the loaded file.
ok | return status.

Returns: an array of MidiTrack objects with the contents of the file.

void parseInfoData ( MidiFileInfo *info, MidiTrack **tracks, float ratioTempo) | ### parseInfoData

`#include <midfile.h>`

void parsePatchesUsed ( MidiTrack **tracks, MidiFileInfo *info, int gm) | ### parsePatchesUsed

`#include <midfile.h>`

Generated by: root@i386.ports.openbsd.org on Wed Apr 25 13:59:16 2001, using kdoc 2.0a53.