From 6b5addcbc30396a3d5ded820bcd181a153122c92 Mon Sep 17 00:00:00 2001 From: Mika Date: Thu, 22 May 2014 00:11:26 +0200 Subject: [PATCH] Maj --- sources/boutonsdemerde.c | 1663 ---------------- sources/main.c | 4030 +++++++++++++++++++++++++++++++++++++- 2 files changed, 4020 insertions(+), 1673 deletions(-) delete mode 100644 sources/boutonsdemerde.c diff --git a/sources/boutonsdemerde.c b/sources/boutonsdemerde.c deleted file mode 100644 index 8ee87ed..0000000 --- a/sources/boutonsdemerde.c +++ /dev/null @@ -1,1663 +0,0 @@ -void fenetreNote0_0 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_0), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_0 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,0,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,0,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,0,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,0,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,0,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,0,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,0,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,0,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,0,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,0,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,0,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,0,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,0,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,0,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,0,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,0,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,0,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,0,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,0,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,0,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,0,5); -} - -void fenetreNote0_1 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_1), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_1 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,1,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,1,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,1,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,1,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,1,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,1,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,1,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,1,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,1,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,1,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,1,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,1,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,1,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,1,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,1,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,1,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,1,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,1,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,1,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,1,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,1,5); -} - -void fenetreNote0_2 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_2), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_2 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,2,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,2,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,2,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,2,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,2,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,2,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,2,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,2,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,2,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,2,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,2,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,2,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,2,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,2,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,2,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,2,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,2,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,2,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,2,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,2,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,2,5); -} - -void fenetreNote0_3 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_3), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_3 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,3,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,3,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,3,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,3,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,3,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,3,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,3,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,3,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,3,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,3,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,3,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,3,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,3,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,3,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,3,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,3,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,3,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,3,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,3,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,3,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,3,5); -} - -void fenetreNote0_4 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_4), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_4 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,4,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,4,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,4,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,4,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,4,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,4,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,4,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,4,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,4,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,4,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,4,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,4,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,4,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,4,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,4,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,4,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,4,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,4,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,4,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,4,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,4,5); -} - -void fenetreNote0_5 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_5), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_5 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,5,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,5,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,5,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,5,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,5,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,5,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,5,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,5,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,5,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,5,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,5,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,5,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,5,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,5,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,5,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,5,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,5,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,5,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,5,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,5,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,5,5); -} - -void fenetreNote0_6 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_6), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_6 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,6,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,6,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,6,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,6,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,6,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,6,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,6,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,6,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,6,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,6,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,6,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,6,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,6,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,6,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,6,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,6,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,6,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,6,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,6,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,6,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,6,5); -} - -void fenetreNote0_7 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_7), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_7 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,7,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,7,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,7,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,7,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,7,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,7,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,7,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,7,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,7,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,7,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,7,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,7,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,7,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,7,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,7,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,7,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,7,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,7,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,7,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,7,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,7,5); -} - -void fenetreNote0_8 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_8), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_8 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,8,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,8,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,8,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,8,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,8,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,8,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,8,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,8,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,8,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,8,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,8,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,8,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,8,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,8,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,8,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,8,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,8,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,8,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,8,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,8,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,8,5); -} - -void fenetreNote0_9 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_9), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_9 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,9,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,9,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,9,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,9,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,9,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,9,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,9,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,9,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,9,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,9,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,9,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,9,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,9,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,9,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,9,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,9,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,9,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,9,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,9,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,9,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,9,5); -} - -void fenetreNote0_10 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_10), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_10 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,10,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,10,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,10,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,10,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,10,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,10,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,10,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,10,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,10,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,10,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,10,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,10,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,10,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,10,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,10,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,10,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,10,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,10,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,10,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,10,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,10,5); -} - -void fenetreNote0_11 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_11), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_11 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,11,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,11,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,11,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,11,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,11,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,11,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,11,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,11,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,11,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,11,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,11,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,11,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,11,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,11,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,11,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,11,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,11,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,11,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,11,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,11,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,11,5); -} - -void fenetreNote0_12 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_12), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_12 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,12,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,12,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,12,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,12,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,12,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,12,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,12,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,12,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,12,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,12,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,12,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,12,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,12,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,12,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,12,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,12,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,12,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,12,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,12,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,12,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,12,5); -} - -void fenetreNote0_13 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_13), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_13 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,13,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,13,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,13,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,13,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,13,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,13,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,13,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,13,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,13,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,13,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,13,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,13,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,13,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,13,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,13,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,13,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,13,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,13,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,13,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,13,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,13,5); -} - -void fenetreNote0_14 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_14), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_14 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,14,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,14,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,14,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,14,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,14,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,14,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,14,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,14,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,14,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,14,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,14,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,14,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,14,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,14,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,14,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,14,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,14,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,14,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,14,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,14,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,14,5); -} - -void fenetreNote0_15 ( int argc, char *argv[] ) -{ - GtkBuilder *monBuilderNote; - GtkWidget *maFenetreNote; - - gtk_init( &argc, &argv ); - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote")); - - GtkButton *button = (GtkButton*) gtk_builder_get_object(monBuilderNote, "buttonok"); - - g_signal_connect(G_OBJECT(button),"clicked",G_CALLBACK(remplissageNote0_15), - GTK_WIDGET( gtk_builder_get_object( monBuilderNote, "ajoutnote"))); - - gtk_widget_show_all (maFenetreNote); -} - -void remplissageNote0_15 (GtkWidget *widget, gpointer *data){ - - GtkBuilder *monBuilderNote; - - monBuilderNote = gtk_builder_new(); - - gtk_builder_add_from_file( monBuilderNote, "GUI/ponytrackertest.glade", NULL); - gtk_builder_connect_signals( monBuilderNote, NULL); - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirnote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisiroctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"choisirinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryvolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilderNote,"entryeffet"); - - if (strcmp(Do,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,1); - else - if (strcmp(DoD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,2); - else - if (strcmp(Re,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,3); - else - if (strcmp(ReD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,4); - else - if (strcmp(Mi,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,5); - else - if (strcmp(Fa,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,6); - else - if (strcmp(FaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,7); - else - if (strcmp(Sol,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,8); - else - if (strcmp(SolD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,9); - else - if (strcmp(La,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,10); - else - if (strcmp(LaD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,11); - else - if (strcmp(Si,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,12); - else - if (strcmp(SiD,gtk_entry_get_text(entryNote))==0) definirNote(m,0,15,13); - - if (strcmp(N1,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,15,1); - else - if (strcmp(N2,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,15,2); - else - if (strcmp(N3,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,15,3); - else - if (strcmp(N4,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,15,4); - else - if (strcmp(N5,gtk_entry_get_text(entryOctave))==0) definirOctave(m,0,15,5); - - if (strcmp(N1,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,15,1); - else - if (strcmp(N2,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,15,2); - else - if (strcmp(N3,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,15,3); - else - if (strcmp(N4,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,15,4); - else - if (strcmp(N5,gtk_entry_get_text(entryInstrument))==0) definirInstrument(m,0,15,5); - - if (strcmp(N1,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,15,1); - else - if (strcmp(N2,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,15,2); - else - if (strcmp(N3,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,15,3); - else - if (strcmp(N4,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,15,4); - else - if (strcmp(N5,gtk_entry_get_text(entryVolume))==0) definirVolume(m,0,15,5); - - if (strcmp(N1,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,15,1); - else - if (strcmp(N2,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,15,2); - else - if (strcmp(N3,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,15,3); - else - if (strcmp(N4,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,15,4); - else - if (strcmp(N5,gtk_entry_get_text(entryEffet))==0) definirEffet(m,0,15,5); -} diff --git a/sources/main.c b/sources/main.c index 8d0661d..ed06b3f 100644 --- a/sources/main.c +++ b/sources/main.c @@ -359,22 +359,20 @@ void fenetreMotif ( int argc, char *argv[] ) gtk_widget_show_all (maFenetreMotif); } -void fenetreNote ( int argc, char *argv[] ) +void fenetreNote0_0 ( int argc, char *argv[] ) { - GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote")); + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_0")); gtk_widget_show_all (maFenetreNote); } -void remplissageNote (GtkWidget *widget, gpointer *data){ +void remplissageNote0_0 (GtkWidget *widget, gpointer *data){ - Motif* m = melodie[0]; - - GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote"); - GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave"); - GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument"); - GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume"); - GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet"); + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_0"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_0"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_0"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_0"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_0"); const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); @@ -446,6 +444,4018 @@ void remplissageNote (GtkWidget *widget, gpointer *data){ else if (strcmp(N5,streffet)==0) definirEffet(m,0,0,5); } +void fenetreNote0_1 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_1")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_1 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_1"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_1"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_1"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_1"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_1"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,1,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,1,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,1,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,1,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,1,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,1,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,1,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,1,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,1,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,1,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,1,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,1,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,1,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,1,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,1,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,1,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,1,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,1,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,1,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,1,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,1,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,1,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,1,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,1,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,1,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,1,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,1,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,1,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,1,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,1,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,1,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,1,5); +} +void fenetreNote0_2 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_2")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_2 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_2"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_2"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_2"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_2"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_2"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,2,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,2,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,2,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,2,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,2,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,2,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,2,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,2,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,2,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,2,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,2,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,2,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,2,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,2,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,2,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,2,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,2,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,2,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,2,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,2,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,2,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,2,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,2,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,2,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,2,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,2,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,2,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,2,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,2,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,2,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,2,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,2,5); +} +void fenetreNote0_3 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_3")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_3 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_3"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_3"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_3"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_3"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_3"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,3,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,3,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,3,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,3,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,3,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,3,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,3,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,3,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,3,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,3,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,3,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,3,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,3,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,3,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,3,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,3,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,3,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,3,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,3,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,3,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,3,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,3,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,3,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,3,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,3,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,3,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,3,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,3,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,3,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,3,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,3,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,3,5); +} +void fenetreNote0_4 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_4")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_4 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_4"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_4"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_4"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_4"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_4"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,4,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,4,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,4,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,4,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,4,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,4,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,4,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,4,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,4,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,4,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,4,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,4,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,4,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,4,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,4,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,4,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,4,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,4,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,4,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,4,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,4,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,4,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,4,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,4,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,4,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,4,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,4,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,4,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,4,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,4,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,4,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,4,5); +} +void fenetreNote0_5 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_5")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_5 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_5"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_5"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_5"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_5"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_5"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,5,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,5,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,5,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,5,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,5,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,5,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,5,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,5,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,5,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,5,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,5,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,5,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,5,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,5,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,5,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,5,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,5,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,5,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,5,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,5,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,5,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,5,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,5,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,5,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,5,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,5,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,5,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,5,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,5,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,5,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,5,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,5,5); +} +void fenetreNote0_6 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_6")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_6 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_6"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_6"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_6"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_6"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_6"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,6,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,6,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,6,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,6,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,6,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,6,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,6,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,6,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,6,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,6,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,6,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,6,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,6,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,6,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,6,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,6,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,6,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,6,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,6,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,6,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,6,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,6,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,6,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,6,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,6,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,6,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,6,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,6,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,6,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,6,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,6,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,6,5); +} +void fenetreNote0_7 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_7")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_7 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_7"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_7"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_7"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_7"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_7"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,7,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,7,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,7,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,7,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,7,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,7,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,7,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,7,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,7,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,7,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,7,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,7,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,7,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,7,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,7,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,7,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,7,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,7,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,7,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,7,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,7,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,7,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,7,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,7,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,7,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,7,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,7,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,7,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,7,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,7,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,7,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,7,5); +} +void fenetreNote0_8 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_8")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_8 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_8"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_8"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_8"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_8"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_8"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,8,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,8,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,8,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,8,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,8,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,8,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,8,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,8,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,8,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,8,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,8,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,8,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,8,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,8,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,8,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,8,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,8,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,8,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,8,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,8,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,8,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,8,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,8,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,8,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,8,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,8,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,8,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,8,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,8,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,8,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,8,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,8,5); +} +void fenetreNote0_9 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_9")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_9 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_9"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_9"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_9"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_9"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_9"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,9,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,9,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,9,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,9,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,9,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,9,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,9,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,9,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,9,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,9,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,9,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,9,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,9,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,9,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,9,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,9,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,9,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,9,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,9,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,9,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,9,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,9,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,9,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,9,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,9,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,9,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,9,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,9,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,9,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,9,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,9,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,9,5); +} +void fenetreNote0_10 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_10")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_10 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_10"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_10"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_10"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_10"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_10"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,10,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,10,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,10,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,10,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,10,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,10,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,10,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,10,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,10,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,10,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,10,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,10,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,10,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,10,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,10,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,10,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,10,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,10,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,10,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,10,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,10,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,10,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,10,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,10,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,10,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,10,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,10,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,10,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,10,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,10,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,10,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,10,5); +} + +void fenetreNote0_11 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_11")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_11 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_11"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_11"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_11"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_11"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_11"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,11,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,11,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,11,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,11,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,11,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,11,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,11,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,11,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,11,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,11,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,11,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,11,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,11,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,11,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,11,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,11,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,11,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,11,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,11,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,11,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,11,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,11,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,11,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,11,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,11,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,11,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,11,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,11,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,11,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,11,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,11,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,11,5); +} + +void fenetreNote0_12 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_12")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_12 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_12"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_12"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_12"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_12"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_12"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,12,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,12,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,12,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,12,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,12,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,12,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,12,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,12,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,12,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,12,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,12,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,12,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,12,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,12,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,12,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,12,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,12,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,12,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,12,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,12,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,12,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,12,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,12,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,12,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,12,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,12,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,12,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,12,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,12,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,12,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,12,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,12,5); +} + +void fenetreNote0_13 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_13")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_13 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_13"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_13"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_13"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_13"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_13"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,13,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,13,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,13,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,13,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,13,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,13,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,13,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,13,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,13,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,13,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,13,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,13,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,13,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,13,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,13,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,13,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,13,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,13,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,13,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,13,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,13,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,13,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,13,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,13,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,13,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,13,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,13,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,13,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,13,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,13,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,13,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,13,5); +} + +void fenetreNote0_14 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_14")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_14 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_14"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_14"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_14"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_14"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_14"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,14,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,14,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,14,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,14,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,14,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,14,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,14,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,14,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,14,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,14,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,14,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,14,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,14,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,14,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,14,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,14,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,14,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,14,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,14,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,14,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,14,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,14,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,14,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,14,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,14,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,14,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,14,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,14,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,14,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,14,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,14,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,14,5); +} + +void fenetreNote0_15 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote0_15")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote0_15 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_15"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_15"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_15"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume0_15"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet0_15"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,0,15,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,0,15,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,0,15,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,0,15,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,0,15,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,0,15,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,0,15,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,0,15,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,0,15,9); + else + if (strcmp(La,strnote)==0) definirNote(m,0,15,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,0,15,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,0,15,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,0,15,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,0,15,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,0,15,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,0,15,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,0,15,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,0,15,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,0,15,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,0,15,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,0,15,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,0,15,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,0,15,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,0,15,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,0,15,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,0,15,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,0,15,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,0,15,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,0,15,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,0,15,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,0,15,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,0,15,5); +} + +void fenetreNote1_0 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_0")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_0(GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_0"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_0"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_0"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_0"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_0"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,0,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,0,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,0,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,0,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,0,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,0,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,0,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,0,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,0,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,0,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,0,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,0,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,0,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,0,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,0,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,0,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,0,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,0,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,0,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,0,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,0,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,0,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,0,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,0,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,0,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,0,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,0,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,0,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,0,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,0,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,0,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,0,5); +} +void fenetreNote1_1 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_1")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_1 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_1"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_1"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_1"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_1"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_1"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,1,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,1,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,1,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,1,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,1,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,1,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,1,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,1,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,1,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,1,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,1,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,1,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,1,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,1,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,1,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,1,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,1,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,1,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,1,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,1,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,1,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,1,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,1,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,1,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,1,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,1,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,1,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,1,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,1,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,1,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,1,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,1,5); +} +void fenetreNote1_2 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_2")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_2 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_2"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_2"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_2"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_2"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_2"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,2,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,2,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,2,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,2,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,2,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,2,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,2,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,2,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,2,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,2,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,2,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,2,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,2,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,2,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,2,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,2,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,2,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,2,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,2,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,2,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,2,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,2,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,2,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,2,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,2,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,2,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,2,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,2,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,2,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,2,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,2,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,2,5); +} +void fenetreNote1_3 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_3")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_3 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_3"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_3"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_3"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_3"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_3"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,3,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,3,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,3,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,3,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,3,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,3,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,3,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,3,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,3,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,3,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,3,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,3,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,3,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,3,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,3,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,3,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,3,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,3,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,3,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,3,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,3,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,3,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,3,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,3,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,3,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,3,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,3,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,3,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,3,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,3,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,3,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,3,5); +} +void fenetreNote1_4 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_4")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_4 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_4"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_4"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_4"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_4"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_4"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,4,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,4,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,4,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,4,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,4,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,4,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,4,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,4,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,4,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,4,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,4,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,4,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,4,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,4,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,4,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,4,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,4,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,4,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,4,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,4,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,4,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,4,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,4,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,4,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,4,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,4,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,4,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,4,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,4,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,4,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,4,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,4,5); +} +void fenetreNote1_5 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_5")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_5 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_5"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_5"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_5"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_5"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_5"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,5,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,5,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,5,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,5,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,5,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,5,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,5,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,5,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,5,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,5,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,5,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,5,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,5,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,5,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,5,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,5,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,5,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,5,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,5,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,5,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,5,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,5,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,5,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,5,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,5,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,5,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,5,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,5,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,5,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,5,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,5,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,5,5); +} +void fenetreNote1_6 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_6")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_6 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_6"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_6"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_6"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_6"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_6"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,6,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,6,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,6,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,6,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,6,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,6,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,6,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,6,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,6,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,6,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,6,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,6,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,6,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,6,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,6,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,6,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,6,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,6,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,6,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,6,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,6,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,6,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,6,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,6,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,6,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,6,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,6,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,6,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,6,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,6,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,6,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,6,5); +} +void fenetreNote1_7 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_7")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_7 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_7"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_7"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_7"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_7"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_7"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,7,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,7,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,7,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,7,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,7,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,7,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,7,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,7,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,7,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,7,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,7,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,7,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,7,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,7,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,7,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,7,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,7,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,7,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,7,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,7,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,7,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,7,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,7,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,7,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,7,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,7,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,7,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,7,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,7,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,7,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,7,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,7,5); +} +void fenetreNote1_8 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_8")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_8 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_8"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_8"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_8"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_8"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_8"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,8,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,8,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,8,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,8,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,8,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,8,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,8,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,8,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,8,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,8,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,8,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,8,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,8,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,8,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,8,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,8,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,8,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,8,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,8,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,8,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,8,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,8,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,8,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,8,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,8,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,8,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,8,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,8,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,8,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,8,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,8,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,8,5); +} +void fenetreNote1_9 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_9")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_9 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_9"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_9"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_9"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_9"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_9"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,9,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,9,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,9,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,9,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,9,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,9,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,9,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,9,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,9,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,9,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,9,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,9,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,9,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,9,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,9,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,9,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,9,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,9,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,9,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,9,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,9,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,9,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,9,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,9,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,9,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,9,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,9,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,9,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,9,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,9,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,9,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,9,5); +} +void fenetreNote1_10 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_10")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_10 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_10"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_10"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_10"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_10"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_10"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,10,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,10,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,10,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,10,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,10,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,10,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,10,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,10,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,10,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,10,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,10,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,10,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,10,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,10,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,10,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,10,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,10,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,10,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,10,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,10,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,10,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,10,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,10,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,10,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,10,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,10,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,10,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,10,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,10,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,10,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,10,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,10,5); +} + +void fenetreNote1_11 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_11")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_11 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_11"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_11"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_11"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_11"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_11"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,11,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,11,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,11,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,11,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,11,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,11,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,11,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,11,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,11,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,11,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,11,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,11,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,11,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,11,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,11,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,11,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,11,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,11,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,11,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,11,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,11,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,11,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,11,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,11,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,11,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,11,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,11,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,11,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,11,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,11,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,11,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,11,5); +} + +void fenetreNote1_12 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_12")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_12 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_12"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_12"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_12"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_12"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_12"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,12,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,12,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,12,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,12,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,12,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,12,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,12,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,12,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,12,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,12,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,12,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,12,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,12,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,12,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,12,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,12,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,12,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,12,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,12,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,12,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,12,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,12,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,12,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,12,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,12,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,12,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,12,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,12,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,12,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,12,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,12,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,12,5); +} + +void fenetreNote1_13 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_13")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_13 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_13"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_13"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_13"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_13"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_13"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,13,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,13,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,13,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,13,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,13,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,13,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,13,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,13,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,13,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,13,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,13,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,13,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,13,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,13,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,13,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,13,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,13,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,13,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,13,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,13,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,13,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,13,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,13,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,13,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,13,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,13,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,13,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,13,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,13,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,13,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,13,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,13,5); +} + +void fenetreNote1_14 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_14")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_14 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_14"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_14"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_14"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_14"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_14"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,14,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,14,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,14,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,14,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,14,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,14,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,14,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,14,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,14,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,14,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,14,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,14,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,14,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,14,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,14,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,14,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,14,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,14,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,14,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,14,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,14,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,14,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,14,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,14,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,14,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,14,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,14,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,14,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,14,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,14,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,14,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,14,5); +} + +void fenetreNote1_15 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote1_15")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote1_15 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_15"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_15"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument1_15"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume1_15"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet1_15"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,1,15,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,1,15,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,1,15,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,1,15,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,1,15,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,1,15,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,1,15,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,1,15,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,1,15,9); + else + if (strcmp(La,strnote)==0) definirNote(m,1,15,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,1,15,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,1,15,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,1,15,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,1,15,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,1,15,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,1,15,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,1,15,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,1,15,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,1,15,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,1,15,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,1,15,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,1,15,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,1,15,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,1,15,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,1,15,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,1,15,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,1,15,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,1,15,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,1,15,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,1,15,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,1,15,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,1,15,5); +} + +void fenetreNote2_0 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_0")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_0 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_0"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_0"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_0"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_0"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_0"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,0,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,0,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,0,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,0,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,0,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,0,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,0,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,0,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,0,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,0,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,0,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,0,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,0,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,0,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,0,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,0,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,0,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,0,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,0,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,0,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,0,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,0,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,0,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,0,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,0,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,0,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,0,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,0,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,0,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,0,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,0,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,0,5); +} +void fenetreNote2_1 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_1")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_1 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_1"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_1"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_1"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_1"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_1"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,1,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,1,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,1,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,1,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,1,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,1,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,1,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,1,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,1,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,1,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,1,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,1,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,1,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,1,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,1,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,1,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,1,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,1,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,1,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,1,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,1,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,1,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,1,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,1,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,1,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,1,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,1,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,1,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,1,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,1,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,1,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,1,5); +} +void fenetreNote2_2 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_2")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_2 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_2"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_2"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_2"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_2"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_2"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,2,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,2,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,2,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,2,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,2,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,2,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,2,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,2,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,2,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,2,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,2,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,2,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,2,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,2,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,2,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,2,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,2,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,2,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,2,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,2,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,2,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,2,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,2,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,2,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,2,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,2,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,2,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,2,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,2,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,2,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,2,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,2,5); +} +void fenetreNote2_3 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_3")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_3 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_3"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_3"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_3"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_3"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_3"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,3,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,3,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,3,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,3,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,3,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,3,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,3,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,3,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,3,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,3,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,3,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,3,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,3,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,3,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,3,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,3,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,3,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,3,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,3,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,3,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,3,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,3,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,3,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,3,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,3,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,3,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,3,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,3,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,3,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,3,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,3,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,3,5); +} +void fenetreNote2_4 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_4")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_4 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_4"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_4"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_4"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_4"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_4"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,4,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,4,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,4,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,4,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,4,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,4,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,4,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,4,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,4,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,4,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,4,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,4,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,4,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,4,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,4,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,4,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,4,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,4,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,4,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,4,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,4,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,4,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,4,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,4,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,4,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,4,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,4,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,4,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,4,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,4,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,4,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,4,5); +} +void fenetreNote2_5 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_5")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_5 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_5"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_5"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_5"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_5"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_5"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,5,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,5,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,5,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,5,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,5,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,5,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,5,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,5,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,5,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,5,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,5,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,5,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,5,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,5,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,5,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,5,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,5,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,5,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,5,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,5,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,5,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,5,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,5,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,5,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,5,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,5,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,5,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,5,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,5,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,5,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,5,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,5,5); +} +void fenetreNote2_6 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_6")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_6 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_6"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_6"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_6"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_6"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_6"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,6,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,6,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,6,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,6,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,6,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,6,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,6,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,6,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,6,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,6,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,6,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,6,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,6,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,6,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,6,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,6,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,6,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,6,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,6,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,6,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,6,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,6,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,6,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,6,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,6,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,6,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,6,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,6,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,6,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,6,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,6,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,6,5); +} +void fenetreNote2_7 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_7")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_7 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_7"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_7"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_7"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_7"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_7"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,7,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,7,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,7,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,7,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,7,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,7,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,7,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,7,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,7,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,7,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,7,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,7,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,7,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,7,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,7,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,7,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,7,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,7,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,7,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,7,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,7,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,7,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,7,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,7,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,7,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,7,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,7,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,7,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,7,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,7,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,7,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,7,5); +} +void fenetreNote2_8 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_8")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_8 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_8"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_8"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_8"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_8"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_8"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,8,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,8,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,8,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,8,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,8,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,8,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,8,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,8,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,8,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,8,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,8,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,8,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,8,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,8,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,8,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,8,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,8,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,8,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,8,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,8,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,8,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,8,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,8,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,8,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,8,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,8,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,8,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,8,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,8,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,8,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,8,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,8,5); +} +void fenetreNote2_9 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_9")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_9 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_9"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_9"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_9"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_9"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_9"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,9,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,9,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,9,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,9,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,9,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,9,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,9,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,9,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,9,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,9,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,9,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,9,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,9,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,9,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,9,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,9,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,9,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,9,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,9,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,9,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,9,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,9,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,9,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,9,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,9,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,9,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,9,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,9,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,9,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,9,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,9,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,9,5); +} +void fenetreNote2_10 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_10")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_10 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_10"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_10"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_10"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_10"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_10"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,10,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,10,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,10,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,10,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,10,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,10,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,10,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,10,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,10,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,10,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,10,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,10,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,10,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,10,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,10,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,10,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,10,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,10,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,10,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,10,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,10,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,10,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,10,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,10,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,10,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,10,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,10,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,10,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,10,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,10,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,10,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,10,5); +} + +void fenetreNote2_11 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_11")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_11 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_11"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_11"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_11"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_11"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_11"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,11,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,11,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,11,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,11,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,11,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,11,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,11,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,11,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,11,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,11,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,11,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,11,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,11,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,11,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,11,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,11,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,11,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,11,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,11,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,11,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,11,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,11,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,11,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,11,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,11,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,11,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,11,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,11,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,11,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,11,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,11,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,11,5); +} + +void fenetreNote2_12 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_12")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_12 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_12"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_12"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_12"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_12"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_12"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,12,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,12,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,12,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,12,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,12,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,12,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,12,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,12,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,12,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,12,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,12,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,12,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,12,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,12,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,12,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,12,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,12,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,12,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,12,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,12,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,12,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,12,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,12,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,12,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,12,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,12,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,12,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,12,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,12,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,12,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,12,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,12,5); +} + +void fenetreNote2_13 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_13")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_13 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_13"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_13"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_13"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_13"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_13"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,13,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,13,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,13,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,13,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,13,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,13,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,13,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,13,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,13,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,13,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,13,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,13,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,13,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,13,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,13,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,13,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,13,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,13,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,13,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,13,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,13,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,13,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,13,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,13,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,13,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,13,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,13,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,13,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,13,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,13,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,13,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,13,5); +} + +void fenetreNote2_14 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_14")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_14 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_14"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_14"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_14"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_14"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_14"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,14,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,14,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,14,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,14,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,14,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,14,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,14,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,14,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,14,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,14,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,14,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,14,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,14,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,14,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,14,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,14,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,14,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,14,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,14,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,14,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,14,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,14,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,14,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,14,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,14,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,14,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,14,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,14,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,14,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,14,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,14,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,14,5); +} + +void fenetreNote2_15 ( int argc, char *argv[] ) +{ + GtkWidget *maFenetreNote = GTK_WIDGET( gtk_builder_get_object( monBuilder, "ajoutnote2_15")); + + gtk_widget_show_all (maFenetreNote); +} + +void remplissageNote2_15 (GtkWidget *widget, gpointer *data){ + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_15"); + GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_15"); + GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument2_15"); + GtkEntry *entryVolume = (GtkEntry*) gtk_builder_get_object(monBuilder,"combovolume2_15"); + GtkEntry *entryEffet = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboeffet2_15"); + + const char *strnote = gtk_entry_get_text(GTK_ENTRY(entryNote)); + const char *stroctave = gtk_entry_get_text(GTK_ENTRY(entryOctave)); + const char *strinstrument = gtk_entry_get_text(GTK_ENTRY(entryInstrument)); + const char *strvolume = gtk_entry_get_text(GTK_ENTRY(entryVolume)); + const char *streffet = gtk_entry_get_text(GTK_ENTRY(entryEffet)); + + if (strcmp(Do,strnote)==0) definirNote(m,2,15,1); + else + if (strcmp(DoD,strnote)==0) definirNote(m,2,15,2); + else + if (strcmp(Re,strnote)==0) definirNote(m,2,15,3); + else + if (strcmp(ReD,strnote)==0) definirNote(m,2,15,4); + else + if (strcmp(Mi,strnote)==0) definirNote(m,2,15,5); + else + if (strcmp(Fa,strnote)==0) definirNote(m,2,15,6); + else + if (strcmp(FaD,strnote)==0) definirNote(m,2,15,7); + else + if (strcmp(Sol,strnote)==0) definirNote(m,2,15,8); + else + if (strcmp(SolD,strnote)==0) definirNote(m,2,15,9); + else + if (strcmp(La,strnote)==0) definirNote(m,2,15,10); + else + if (strcmp(LaD,strnote)==0) definirNote(m,2,15,11); + else + if (strcmp(Si,strnote)==0) definirNote(m,2,15,12); + + if (strcmp(N1,stroctave)==0) definirOctave(m,2,15,1); + else + if (strcmp(N2,stroctave)==0) definirOctave(m,2,15,2); + else + if (strcmp(N3,stroctave)==0) definirOctave(m,2,15,3); + else + if (strcmp(N4,stroctave)==0) definirOctave(m,2,15,4); + else + if (strcmp(N5,stroctave)==0) definirOctave(m,2,15,5); + + if (strcmp(N1,strinstrument)==0) definirInstrument(m,2,15,1); + else + if (strcmp(N2,strinstrument)==0) definirInstrument(m,2,15,2); + else + if (strcmp(N3,strinstrument)==0) definirInstrument(m,2,15,3); + else + if (strcmp(N4,strinstrument)==0) definirInstrument(m,2,15,4); + else + if (strcmp(N5,strinstrument)==0) definirInstrument(m,2,15,5); + + if (strcmp(N1,strvolume)==0) definirVolume(m,2,15,1); + else + if (strcmp(N2,strvolume)==0) definirVolume(m,2,15,2); + else + if (strcmp(N3,strvolume)==0) definirVolume(m,2,15,3); + else + if (strcmp(N4,strvolume)==0) definirVolume(m,2,15,4); + else + if (strcmp(N5,strvolume)==0) definirVolume(m,2,15,5); + + if (strcmp(N1,streffet)==0) definirEffet(m,2,15,1); + else + if (strcmp(N2,streffet)==0) definirEffet(m,2,15,2); + else + if (strcmp(N3,streffet)==0) definirEffet(m,2,15,3); + else + if (strcmp(N4,streffet)==0) definirEffet(m,2,15,4); + else + if (strcmp(N5,streffet)==0) definirEffet(m,2,15,5); +} void lancerLecture () {