Re:Zupiter: A Web-Based Modular Synthesizer
by WAHa_06x36 on Sunday October 06, 2019 @02:10PM
(#21173724)
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.
[ Parent
| on HN ]
Re:Zupiter: A Web-Based Modular Synthesizer
by __max__ on Sunday October 06, 2019 @02:15PM
(#21173759)
So you think the oscillators should essentially be stateful? That might explain why I can't seem to implement 303-style slide correctly.
Re:Zupiter: A Web-Based Modular Synthesizer
by TheOtherHobbes on Sunday October 06, 2019 @07:51PM
(#21176054)
https://en.wikipedia.org/wiki/Numerically-controlled_oscilla...
The more advanced version without aliasing: http://www.martin-finke.de/blog/articles/audio-plugins-018-p...
Re:Zupiter: A Web-Based Modular Synthesizer
by __max__ on Monday October 07, 2019 @09:26AM
(#21180488)
I implemented this last night, and it solves the problem I was having with portamento: https://z.musictools.live/#95