A MIDI piano synthesizer that implements the Karplus Strong physical modeling algorithm.

Dependencies:   mbed USBDevice PinDetect

Revision:
18:26d93c5b9bb6
Parent:
13:bb0ec927e458
--- a/Audio/AudioEngine.cpp	Tue Apr 19 17:22:18 2016 +0000
+++ b/Audio/AudioEngine.cpp	Thu Apr 21 01:41:13 2016 +0000
@@ -55,11 +55,13 @@
     }
 }
 
-void AudioEngine::nextSynth(int direction) {
+int AudioEngine::nextSynth(int direction) {
+    int nextIndex;
     // Hand the command down to the synthesizers.
     for (int i = 0; i < C::MAX_POLYPHONY; i++) {
-        synthesizers[i].nextSynth(direction);   
+        nextIndex = synthesizers[i].nextSynth(direction);   
     }
+    return nextIndex;
 }
 
 void AudioEngine::outputAudio() {