Veikko Kero / Mbed 2 deprecated MIDI_Interface_ver_1

Dependencies:   SPI_TFT_ILI9341 TFT_fonts Touch_tft PowerControl mbed USBMIDI

Revision:
9:df3bff3a0b76
Parent:
7:4aec4a6acac2
Child:
10:ff7cdaeb8b9a
--- a/light_pressed.h	Thu Feb 06 08:37:47 2014 +0000
+++ b/light_pressed.h	Mon Feb 10 09:58:37 2014 +0000
@@ -3,7 +3,7 @@
 
 
 int slider;
-int Octave = 0;
+extern int Oct = 0;
 
 
 touch_tft tft(p20,p19,p18,p17,p5, p6, p7, p14, p15, p21, "TFT"); // x+,x-,y+,y-,mosi, miso, sclk, cs, reset, dc
@@ -100,10 +100,12 @@
     if (p.y > 243 && p.y < 318) {           //ROW C
         if (p.x > 83 && p.x < 158) {        //Ocatave down
             buttons(8, color);
+            Oct = Oct - 12;
 
         }
         if (p.x > 163 && p.x < 238) {       //Octave up
             buttons(9, color);
+            Oct = Oct + 12;
 
 
         }