N K
/
analoghalls6
motor spins
Fork of analoghalls5 by
Diff: referencesynthesizers.cpp
- Revision:
- 6:99ee0ce47fb2
- Parent:
- 5:ee1e6c84c302
diff -r ee1e6c84c302 -r 99ee0ce47fb2 referencesynthesizers.cpp --- a/referencesynthesizers.cpp Tue Mar 03 06:28:10 2015 +0000 +++ b/referencesynthesizers.cpp Wed Mar 04 15:33:32 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)-1.0f; //shift range 0:1 to -1:1 + return sinetab[(int) theta] * 2.0f - 1.0f; } float ReferenceSynthesizer::LutCos(float theta) {