diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 1c6f520..cafc4f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,8 +88,8 @@ impl DDS { let incr = 1.0f32 / TRIG_TABLE_LEN as f32; for i in 0..TRIG_TABLE_LEN { - let i = f32::cos(incr * i as f32 * 2.0 * PI) * 255.0; - let q = f32::sin(incr * i as f32 * 2.0 * PI) * 255.0; + let i = f32::cos(incr * i as f32 * 2.0 * PI) * 127.0; + let q = f32::sin(incr * i as f32 * 2.0 * PI) * 127.0; match waveform { Waveform::Sine => { |