remove unessecary math
This commit is contained in:
parent
6d874af45f
commit
48e4051310
1 changed files with 0 additions and 3 deletions
|
|
@ -154,9 +154,6 @@ const polyBlep = (phase, dt) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const saw = (phase, dt) => {
|
const saw = (phase, dt) => {
|
||||||
// Correct phase, so it would be in line with sin(2.*M_PI * phase)
|
|
||||||
phase += 0.5;
|
|
||||||
if (phase >= 1) phase -= 1;
|
|
||||||
const v = 2 * phase - 1;
|
const v = 2 * phase - 1;
|
||||||
return v - polyBlep(phase, dt);
|
return v - polyBlep(phase, dt);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue