2014-04-01 21:31:20 +02:00
|
|
|
#include "melodie.h"
|
|
|
|
|
|
|
|
void afficherListeMelodie(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2014-04-03 12:16:16 +02:00
|
|
|
void afficherListeMotifs(){
|
2014-04-01 21:31:20 +02:00
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
void afficherMotifActuel(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2014-05-21 18:08:47 +02:00
|
|
|
/* void definirCourant(int i){
|
2014-04-01 21:31:20 +02:00
|
|
|
courant = i;
|
2014-05-21 18:08:47 +02:00
|
|
|
}*/
|
2014-04-01 21:31:20 +02:00
|
|
|
|
2014-04-06 17:21:27 +02:00
|
|
|
void ajouterMotifVirtuel(Motif* melodie[], int ind, Motif* m){
|
|
|
|
for (int i = taille; i > ind; i--) {
|
2014-04-01 21:31:20 +02:00
|
|
|
melodie[i] = melodie[i-1];
|
|
|
|
}
|
|
|
|
taille++;
|
2014-04-06 17:21:27 +02:00
|
|
|
melodie[ind] = 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){
|
|
|
|
melodie[ind] = 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 21:31:20 +02:00
|
|
|
taille--;
|
2014-04-06 17:21:27 +02:00
|
|
|
for (int i = ind; i < taille; i--) {
|
2014-04-01 21:31:20 +02:00
|
|
|
melodie[i] = melodie[i+1];
|
|
|
|
}
|
2014-04-03 12:16:16 +02:00
|
|
|
}
|