implemented modulators

This commit is contained in:
Jade (Rose) Rowland 2024-03-05 00:23:19 -05:00
parent bfcb2070d1
commit c0b00339c5
3 changed files with 9 additions and 137 deletions

View file

@ -112,6 +112,7 @@ class DistortProcessor extends AudioWorkletProcessor {
registerProcessor('distort-processor', DistortProcessor);
// adjust waveshape to remove frequencies above nyquist to prevent aliasing
// referenced from https://www.kvraudio.com/forum/viewtopic.php?t=375517
const polyBlep = (phase, dt) => {
// 0 <= phase < 1
if (phase < dt) {