2014-03-29 17:47:13 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "instruments.h"
|
|
|
|
#include "effets.h"
|
|
|
|
|
|
|
|
#define NBRPORT 4
|
|
|
|
#define NBRMOTIF 16
|
|
|
|
|
|
|
|
typedef struct _note{
|
|
|
|
int note;
|
|
|
|
int octave;
|
|
|
|
int intrument;
|
|
|
|
int volume;
|
|
|
|
int effet;
|
|
|
|
} Note;
|
|
|
|
|
|
|
|
typedef Note* Portee;
|
|
|
|
|
|
|
|
typedef Portee* Motif;
|
|
|
|
|
|
|
|
typedef struct _liste{
|
|
|
|
Motif motif;
|
|
|
|
struct _liste* suivant;
|
|
|
|
} Liste;
|
|
|
|
|
|
|
|
Liste* tab;
|
|
|
|
|
|
|
|
void ajouterMotif(int nbrPortees, int nbrTmp);
|
|
|
|
|
|
|
|
void supprimerMotif(Liste** cellule, int nbrPortees); // cellule correspond à l'adresse de l'élément de la liste (avec &)
|
2014-03-29 18:00:23 +01:00
|
|
|
|
|
|
|
void definirNote(Motif m, int portee, int tmp, int note, int octave, int instrument, int volume, int effet);
|
|
|
|
|
|
|
|
void supprimerNote(Motif m, int portee, int tmp);
|