src/table.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "global.h"

Go to the source code of this file.

Data Structures

struct  Node_t
struct  Node

Typedefs

typedef Node_tLink_t
typedef NodeLink

Functions

void init_table ()
void insert_tempo (int delta_time, int tempo)
void print_tempo ()
void insert_table (int track, int delta_time, unsigned char *bytes)
void print_table (int track)
int fix_soloist_track ()
void finish_table ()

Variables

Link_t head_t
Linktable
int * events

Typedef Documentation

typedef Node_t* Link_t
typedef Node* Link

Function Documentation

void init_table (  ) 

This function allocates memory for three structures: (1) the list of tempo changes; (2) the main table of the program; (3) a temporary structure called 'events'.

void insert_tempo ( int  delta_time,
int  tempo 
)

This function inserts an element into the list of tempo changes.

void print_tempo (  ) 

This function prints the list of tempo changes.

void insert_table ( int  track,
int  delta_time,
unsigned char *  bytes 
)

This function inserts an element into the table that stores the score.

void print_table ( int  track  ) 

This function prints just one line of the table that stores the score.

int fix_soloist_track (  ) 

This function cleans the track that store the soloist track. It removes all the events different than 'Note On'.

void finish_table (  ) 

This function deallocates the memory of three structures: (1) the list of tempo changes; (2) the main table of the program; (3) a temporary structure called 'events'.


Variable Documentation

int* events
 All Data Structures Files Functions Variables Typedefs Defines
Generated by  doxygen 1.6.2-20100124