MIDI Interface in progress

Dependencies:   SPI_TFT_ILI9341 TFT_fonts Touch_tft PowerControl mbed USBMIDI

Revision:
9:df3bff3a0b76
Parent:
7:4aec4a6acac2
Child:
10:ff7cdaeb8b9a
--- a/main.cpp	Thu Feb 06 08:37:47 2014 +0000
+++ b/main.cpp	Mon Feb 10 09:58:37 2014 +0000
@@ -1,5 +1,4 @@
 #include "mbed.h"
-
 #include "Arial12x12.h"
 #include "Arial28x28.h"
 
@@ -38,30 +37,7 @@
 void nine_keys(void)
 {
 
-    // Tallentaa pitchin
-    
-
-    // Tallentaa painallukset
-    for (i = 0; i < 9; i++) {
-        if (input = key[i].read())
-            painetut_nappaimet[i] = 1;
-    }
-    // Lähettään painallusten perusteella midimessagen
-    for (i = 0; i < 9; i++) {
-        if (painetut_nappaimet[i])
-            //midi.write(MIDIMessage::Noteon(48 + i));
-            // Debuggaus puttyyn
-            pc.printf("Digital input %d", i);               //terminal viesti
-            
-            pc.printf(": %d\n\r", key[i].read());
-    }
-    
-    
-    // Lopettaa midimessagen lähettämisen
-    for (i = 0; i < 9; i++) {
-        if (painetut_nappaimet[i])
-            wait(0.000001);//midi.write(MIDIMessage::NoteOff(48 + i));
-    }
+  // TÄNNE HEI SE KOODI
 }
 
 
@@ -124,7 +100,7 @@
             light_pressed(Red,p);
             
             tft.locate(160, 0);
-            printf("%i", Octave);
+            printf("%i", Oct);
             tft.locate(160, 12);
             printf("%i", slider);