12-polyphonic "chiptune" MIDI synthesizer for LPC1768 (Standalone version)

Dependencies:   ClockControl PowerControl mbed

Revision:
4:b2423ad4b248
Parent:
3:cf57d7031c12
--- a/GeminiCore.cpp	Tue Nov 18 17:05:49 2014 +0000
+++ b/GeminiCore.cpp	Tue Dec 09 15:04:13 2014 +0000
@@ -140,7 +140,8 @@
         return false;
     }
     
-    iThInst->setFrequency(frequency);  // @TODO pitch bend correction needed
+    iThInst->resetDuration();
+    iThInst->setFrequency(frequency);
     iThInst->setVelocity(velocity);
     return true;
 }
@@ -157,7 +158,7 @@
         return false;
     }
     
-    iThInst->setFrequency(0);
+    iThInst->setFrequency(0); 
     return true;
 }