35 #define DEF_NBR_TMP 16
36 #define MAX_PATTERNS 256
71 printf(
"%s :\n",m->
nom);
72 for (
int tmp = 0; tmp < m->
nbrTmp; tmp++){
73 for (
int portee = 0; portee <
nbrPortees; portee++){
74 printf(
"%d ",
getNote(m,portee,tmp));
195 int main(
int argc,
char *argv[] ){
198 GtkWidget *maFenetre;
200 gtk_init( &argc, &argv );
204 gtk_builder_add_from_file(
monBuilder,
"GUI/ponytrackertest.glade", NULL);
205 gtk_builder_connect_signals(
monBuilder, NULL);
207 maFenetre = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"fenetreprincipale"));
209 GtkButton *button = (GtkButton*) gtk_builder_get_object(
monBuilder,
"button16");
333 gtk_button_set_label(button, str);
335 gtk_widget_show_all (maFenetre);
343 GtkWidget *maFenetreSample = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutsample"));
345 gtk_widget_show_all (maFenetreSample);
350 GtkWidget *maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutinstrument"));
352 gtk_widget_show_all (maFenetreInstrument);
357 GtkWidget *maFenetreMotif = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutmotif"));
359 gtk_widget_show_all (maFenetreMotif);
364 GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object(
monBuilder,
"ajoutnote"));
366 gtk_widget_show_all (maFenetreNote);
373 GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"combonote");
374 GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"combooctave");
375 GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"comboinstrument");
376 GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"combovolume");
377 GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(
monBuilder,
"comboeffet");
379 const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote));
380 const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave));
381 const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument));
382 const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume));
383 const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet));
int main(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)
Instrument * inst[NBR_INST]
int getEffet(Motif *m, int portee, int tmp)
void ajouterSample(Sample *tab[], int i, char *chemin)
void remplissageNote(GtkWidget *widget, gpointer *data)
void definirOctave(Motif *m, int portee, int tmp, int octave)
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 setHauteur(Sample *sample, float hauteur)
int getVolume(Motif *m, int portee, int tmp)
void lecture(int nombreChaines, int nombreInst, int tempo, Instrument *inst[], Motif *melodie[])
void fenetreNote(int argc, char *argv[])
void ajouterMotifVirtuel(Motif *melodie[], int ind, Motif *m)
void fenetreMotif(int argc, char *argv[])
void ajouterInstrument(Instrument *tab[], int i)
void debut(Motif *melodie[], Instrument *inst[], Sample *smpl[], Motif *liste, int nbrPortees)
void definirEffet(Motif *m, int portee, int tmp, int effet)
FMOD_TAGTYPE char void * data
Motif * melodie[MAX_PATTERNS]
void setSample(Instrument *inst, Sample *smpl)
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)