Sources motifs 2
This commit is contained in:
@@ -21,3 +21,15 @@ void supprimerMotif(Liste** cellule, int nbrPortees){
|
||||
free((*cellule));
|
||||
*cellule = aux;
|
||||
}
|
||||
|
||||
void definirNote(Motif m, int portee, int tmp, int note, int octave, int instrument, int volume, int effet){
|
||||
m[portee][tmp]->note=note;
|
||||
m[portee][tmp]->octave=octave;
|
||||
m[portee][tmp]->instrument=instrument;
|
||||
m[portee][tmp]->volume=volume;
|
||||
m[portee][tmp]->effet=effet;
|
||||
}
|
||||
|
||||
void supprimerNote(Motif m, int portee, int tmp){
|
||||
m[portee][tmp]->note=0;
|
||||
}
|
||||
|
||||
@@ -28,3 +28,7 @@ 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 &)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user