2014-04-01 21:31:20 +02:00
|
|
|
#include "melodie.h"
|
|
|
|
|
|
|
|
void afficherListeMelodie(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
void affocherListeMotifs(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
void afficherMotifActuel(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
void definirCourant(int i){
|
|
|
|
courant = i;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ajouterMotifVirtuel(){
|
|
|
|
for (int i = taille; i > courant; i--) {
|
|
|
|
melodie[i] = melodie[i-1];
|
|
|
|
}
|
|
|
|
taille++;
|
|
|
|
melodie[courant] = liste;
|
|
|
|
}
|
|
|
|
|
|
|
|
void definirMotifVirtuel(Motif* m){
|
|
|
|
melodie[courant] = m;
|
|
|
|
}
|
|
|
|
|
|
|
|
void supprimerMotifVirtuel(){
|
|
|
|
taille--;
|
|
|
|
for (int i = courant; i < taille; i--) {
|
|
|
|
melodie[i] = melodie[i+1];
|
|
|
|
}
|
|
|
|
}
|