2014-04-01 13:48:39 +02:00
|
|
|
#ifndef _melodie_h
|
|
|
|
#define _melodie_h
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
2014-04-01 21:31:20 +02:00
|
|
|
#include "../motifs/motifs.h"
|
2014-04-01 13:48:39 +02:00
|
|
|
|
2014-05-20 13:17:26 +02:00
|
|
|
// int courant;
|
2014-04-01 21:31:20 +02:00
|
|
|
|
2014-04-06 20:08:43 +02:00
|
|
|
int taille;
|
2014-04-01 21:31:20 +02:00
|
|
|
|
|
|
|
// Les trois fonctions suivantes servent au couplage avec la GUI.
|
|
|
|
|
|
|
|
void afficherListeMelodie();
|
|
|
|
|
|
|
|
void afficherListeMotifs();
|
|
|
|
|
|
|
|
void afficherMotifActuel();
|
|
|
|
|
|
|
|
void definirCourant(int i);
|
|
|
|
|
2014-04-06 17:21:27 +02:00
|
|
|
void ajouterMotifVirtuel(Motif* melodie[], int ind, Motif* m);
|
2014-04-01 21:31:20 +02:00
|
|
|
|
2014-04-06 17:21:27 +02:00
|
|
|
void definirMotifVirtuel(Motif* melodie[], int ind, Motif* m);
|
2014-04-01 21:31:20 +02:00
|
|
|
|
2014-04-06 17:21:27 +02:00
|
|
|
void supprimerMotifVirtuel(Motif* melodie[], int ind);
|
2014-04-01 13:48:39 +02:00
|
|
|
|
2014-04-06 17:21:27 +02:00
|
|
|
#endif
|