Hacker News new | ask | show | jobs
by WAHa_06x36 2445 days ago
It doesn't seem your oscillators are behaving correctly when you vary their frequency input. You seem to be doing something like phase = freq * time, which will break horribly when freq changes. Instead, you need to accumulate the phase over time based on whatever freq happens to be, like phase += freq * timeOfSingleSample.
2 comments

So you think the oscillators should essentially be stateful? That might explain why I can't seem to implement 303-style slide correctly.
I implemented this last night, and it solves the problem I was having with portamento: https://z.musictools.live/#95