Dependencies:   mbed USBDevice PinDetect

Revision:
18:26d93c5b9bb6
Parent:
13:bb0ec927e458
diff -r 55e6132c54a8 -r 26d93c5b9bb6 Audio/Synthesizer.cpp
--- a/Audio/Synthesizer.cpp	Tue Apr 19 17:22:18 2016 +0000
+++ b/Audio/Synthesizer.cpp	Thu Apr 21 01:41:13 2016 +0000
@@ -99,7 +99,7 @@
     return voiceIndex;   
 }
 
-void Synthesizer::nextSynth(int direction) {
+int Synthesizer::nextSynth(int direction) {
     // Rotate to the next synth.
     processorIndex += direction;
     if (processorIndex >= numSynths) {
@@ -114,6 +114,8 @@
         bufferIndex = 0;
         currentState = FILL;  
     }
+    
+    return processorIndex;
 }
 
 int Synthesizer::getCurrentKey() {