32 #define DEF_NBR_TMP 16
33 #define MAX_PATTERNS 256
38 printf(
"%s :\n",m->
nom);
39 for (
int tmp = 0; tmp < m->
nbrTmp; tmp++){
40 for (
int portee = 0; portee < nbrPortees; portee++){
41 printf(
"%d ",
getNote(m,portee,tmp));
132 int main(
int argc,
char *argv[] ){
137 GtkBuilder *monBuilder;
138 GtkWidget *maFenetre;
140 gtk_init( &argc, &argv );
142 monBuilder = gtk_builder_new();
144 gtk_builder_add_from_file( monBuilder,
"GUI/ponytracker.glade", NULL);
145 gtk_builder_connect_signals( monBuilder, NULL);
147 maFenetre = GTK_WIDGET( gtk_builder_get_object( monBuilder,
"fenetreprincipale"));
149 gtk_widget_show_all (maFenetre);
156 GtkBuilder *monBuilderSample;
157 GtkWidget *maFenetreSample;
159 gtk_init( &argc, &argv );
161 monBuilderSample = gtk_builder_new();
163 gtk_builder_add_from_file( monBuilderSample,
"GUI/ponytracker.glade", NULL);
164 gtk_builder_connect_signals( monBuilderSample, NULL);
166 maFenetreSample = GTK_WIDGET( gtk_builder_get_object( monBuilderSample,
"ajoutsample"));
168 gtk_widget_show_all (maFenetreSample);
173 GtkBuilder *monBuilderInstrument;
174 GtkWidget *maFenetreInstrument;
176 gtk_init( &argc, &argv );
178 monBuilderInstrument = gtk_builder_new();
180 gtk_builder_add_from_file( monBuilderInstrument,
"GUI/ponytracker.glade", NULL);
181 gtk_builder_connect_signals( monBuilderInstrument, NULL);
183 maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object( monBuilderInstrument,
"ajoutinstrument"));
185 gtk_widget_show_all (maFenetreInstrument);
190 GtkBuilder *monBuilderMotif;
191 GtkWidget *maFenetreMotif;
193 gtk_init( &argc, &argv );
195 monBuilderMotif = gtk_builder_new();
197 gtk_builder_add_from_file( monBuilderMotif,
"GUI/ponytracker.glade", NULL);
198 gtk_builder_connect_signals( monBuilderMotif, NULL);
200 maFenetreMotif = GTK_WIDGET( gtk_builder_get_object( monBuilderMotif,
"ajoutmotif"));
202 gtk_widget_show_all (maFenetreMotif);
212 debut(melodie, liste, nbrPortees);
213 lecture(nbrPortees,480,melodie);
int main(int argc, char *argv[])
void ajouterMotif(Motif **pliste, int nbrTmp, int nbrPortees)
int getNote(Motif *m, int portee, int tmp)
void fenetreSample(int argc, char *argv[])
void definirNote(Motif *m, int portee, int tmp, int note)
void fenetreInstrument(int argc, char *argv[])
void afficherMotif(Motif *m, int nbrPortees)
void debut(Motif *melodie[], Motif *liste, int nbrPortees)
void lecture(int nombreChaines, int tempo, Motif *melodie[])
void ajouterMotifVirtuel(Motif *melodie[], int ind, Motif *m)
void fenetreMotif(int argc, char *argv[])
void definirInstrument(Motif *m, int portee, int tmp, int instrument)