N K
/
analoghalls6
motor spins
Fork of analoghalls5 by
Diff: referencesynthesizers.cpp
- Revision:
- 5:ee1e6c84c302
- Parent:
- 3:0a2396597e0d
- Child:
- 6:99ee0ce47fb2
diff -r fdadf4a3577a -r ee1e6c84c302 referencesynthesizers.cpp --- 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) {