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

Dependencies:   mbed

Fork of analoghalls6 by N K

Revision:
7:76d6ceb23e0d
Parent:
6:99ee0ce47fb2
--- a/referencesynthesizers.cpp	Wed Mar 04 15:33:32 2015 +0000
+++ b/referencesynthesizers.cpp	Thu Mar 05 11:02:54 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] * 2.0f - 1.0f;
+    return sinetab[(int) theta];
 }
 
 float ReferenceSynthesizer::LutCos(float theta) {