working-est copy with class-based code. still open loop

Dependencies:   mbed

Fork of analoghalls6 by N K

Revision:
5:ee1e6c84c302
Parent:
3:0a2396597e0d
Child:
6:99ee0ce47fb2
--- a/referencesynthesizers.cpp	Mon Mar 02 11:17:15 2015 +0000
+++ b/referencesynthesizers.cpp	Tue Mar 03 06:28:10 2015 +0000
@@ -10,7 +10,7 @@
 float ReferenceSynthesizer::LutSin(float theta) {
     if (theta < 0.0f) theta += 360.0f;
     if (theta >= 360.0f) theta -= 360.0f;
-    return sinetab[(int) theta];
+    return (sinetab[(int) theta]*2)-1.0f; //shift range 0:1 to -1:1
 }
 
 float ReferenceSynthesizer::LutCos(float theta) {