src/csv.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "instruments.h"
#include "global.h"
#include "table.h"
Go to the source code of this file.
Define Documentation
Function Documentation
int load_csv |
( |
FILE * |
input |
) |
|
This function receives a CSV file, reads its bytes, interprets them and fills the table of MIDI events. It also assigns values to some important global variables (like 'n_tracks' and 'ticks_per_beat'). It returns 0 in case of success and returns 1 otherwise.