10 #define DEF_NBR_TMP 16
11 #define MAX_PATTERNS 256
36 printf(
"%s :\n",m->
nom);
37 for (
int tmp = 0; tmp < m->
nbrTmp; tmp++){
38 for (
int portee = 0; portee <
nbrPortees; portee++){
39 printf(
"%d ",
getNote(m,portee,tmp));
136 pc = malloc((strlen(s) + 1) *
sizeof *pc);
146 int main(
int argc,
char *argv[] ){
148 GtkWidget *maFenetre;
151 gtk_init( &argc, &argv );
155 gtk_builder_add_from_file(
monBuilder,
"GUI/ponytrackertest.glade", NULL);
156 gtk_builder_connect_signals(
monBuilder, NULL);
158 maFenetre = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"fenetreprincipale"));
160 GtkButton *button = (GtkButton*) gtk_builder_get_object(
monBuilder,
"button16");
282 gtk_button_set_label(button, str);
284 gtk_widget_show_all (maFenetre);
292 GtkWidget *maFenetreSample = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutsample"));
294 gtk_widget_show_all (maFenetreSample);
299 GtkWidget *maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutinstrument"));
301 gtk_widget_show_all (maFenetreInstrument);
306 GtkWidget *maFenetreMotif = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutmotif"));
308 gtk_widget_show_all (maFenetreMotif);
313 GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutnote"));
315 gtk_widget_show_all (maFenetreNote);
320 GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"combonote");
321 GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"combooctave");
322 GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"comboinstrument");
323 GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"combovolume");
324 GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"comboeffet");
326 const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote));
327 const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave));
328 const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument));
329 const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume));
330 const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet));
404 debut(melodie, liste, nbrPortees);
405 lecture(nbrPortees,480,melodie);
void fenetreInstrument(int argc, char *argv[])
int getInstrument(Motif *m, int portee, int tmp)
void ajouterMotif(Motif **pliste, int nbrTmp, int nbrPortees)
int getNote(Motif *m, int portee, int tmp)
void fenetreSample(int argc, char *argv[])
void afficherMotif(Motif *m, int nbrPortees)
int getEffet(Motif *m, int portee, int tmp)
void fenetreNote(int argc, char *argv[])
void definirOctave(Motif *m, int portee, int tmp, int octave)
void definirNote(Motif *m, int portee, int tmp, int note)
int main(int argc, char *argv[])
char * str_dup(char const *s)
int getVolume(Motif *m, int portee, int tmp)
void lecture(int nombreChaines, int nombreInst, int tempo, Instrument *inst[], Motif *melodie[])
void ajouterMotifVirtuel(Motif *melodie[], int ind, Motif *m)
void debut(Motif *melodie[], Motif *liste, int nbrPortees)
void definirEffet(Motif *m, int portee, int tmp, int effet)
void fenetreMotif(int argc, char *argv[])
FMOD_TAGTYPE char void * data
Motif * melodie[MAX_PATTERNS]
void remplissageNote(GtkWidget *widget, gpointer *data)
void definirInstrument(Motif *m, int portee, int tmp, int instrument)
void definirVolume(Motif *m, int portee, int tmp, int volume)
int getOctave(Motif *m, int portee, int tmp)