2014-05-15 03:44:03 +02:00
|
|
|
/**
|
|
|
|
* @file lecture.h
|
|
|
|
*
|
|
|
|
* Lecture de la mélodie
|
|
|
|
*
|
|
|
|
* @version 1
|
|
|
|
* @author Module CSC3502 : Projet Informatique 1ère année TELECOM SudParis
|
|
|
|
* @date Mai 2014
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2014-04-08 14:23:22 +02:00
|
|
|
#ifndef _LECTURE_H
|
|
|
|
#define _LECTURE_H
|
|
|
|
|
|
|
|
#include "../melodie/melodie.h"
|
2014-05-06 15:10:34 +02:00
|
|
|
// #include "../instruments/instrument.h"
|
2014-05-10 17:54:16 +02:00
|
|
|
// #include <SDL2/SDL.h>
|
|
|
|
// #include <SDL2/SDL_mixer.h>
|
2014-04-08 14:23:22 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2014-05-10 17:54:16 +02:00
|
|
|
#include <unistd.h>
|
2014-05-10 17:11:35 +02:00
|
|
|
#include "../fmod/include/fmod.h"
|
2014-04-08 14:23:22 +02:00
|
|
|
|
|
|
|
#define NBR_MS
|
|
|
|
|
2014-05-15 03:44:03 +02:00
|
|
|
/**
|
|
|
|
Permet la lecture d'un motif
|
|
|
|
@param[in] nbrChaines : nombre de chaines
|
|
|
|
@param[in] tempo : nombre de tempo
|
|
|
|
@param[in] melodie[] : motif lu
|
|
|
|
*/
|
2014-05-10 17:54:16 +02:00
|
|
|
void lecture(int nbrChaines, int tempo, Motif* melodie[]);
|
2014-04-08 14:23:22 +02:00
|
|
|
|
|
|
|
#endif
|