Skip to content
Snippets Groups Projects
Commit 0661b858 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

dtmf: TWO_PI applies to frequency component, not sample offset

parent 1101b7bd
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ Tone::fillWavetable()
static const double TWO_PI = 2.0 * M_PI;
for (int i = 0; i < TABLE_LENGTH; ++i)
wavetable_[i] = sin(i / (tableSize - 1.0)) * TWO_PI;
wavetable_[i] = sin((i / (tableSize - 1.0)) * TWO_PI);
}
double
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment