mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 05:38:34 +00:00
remove unessecary math
This commit is contained in:
parent
6d874af45f
commit
48e4051310
@ -154,9 +154,6 @@ const polyBlep = (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;
|
||||
return v - polyBlep(phase, dt);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user