Tsuyoshi TSUCHIMOTO / Mbed 2 deprecated Synthesizer

Dependencies:   mbed

Revision:
8:dd2da7c0c4c7
Parent:
7:a478d5cc411e
Child:
9:d2a5406650ae
--- a/Occilator.cpp	Tue Feb 09 02:57:27 2016 +0000
+++ b/Occilator.cpp	Tue Feb 09 05:39:46 2016 +0000
@@ -3,6 +3,9 @@
 #include "Occilator.h"
 #include "Square.h"
 #include "WT.h"
+#include "Sine.h"
+#include "Noise.h"
+#include "Saw.h"
 
 static long interrupt_us;
 static int part_num=0;
@@ -23,12 +26,19 @@
         case OCC_NONE:
         case OCC_SQUARE:
             return new Square(interrupt_us);
+
+        case OCC_NOISE:
+            return new Noise(interrupt_us);
             
         case OCC_SINE:
+            return new Sine(interrupt_us);
+            
+        case OCC_SAW:
+            return new Saw(interrupt_us);
         case OCC_WT:
-        case OCC_NOISE:
         default:
             return new WT(interrupt_us);
+        
     }
 }