Band limited oscillators v0.0.2 - square/saw oscillators optimised for audio

I’ve been working on a couple of audio-rate oscillators in the DSP layer. These are using band limited synthesis, so you shouldn’t get audible digital aliasing noises even at higher frequencies.

This is very much an alpha-release. I’m an expert in neither C++ nor DSP :slight_smile:

There’s two units in here: a saw oscillator, and square with pulse-width modulation- all standard self-explanatory controls.

band_limited_osc-0.0.2.pkg (60.3 KB) (also should be on the package hub soon)

Code is here in case you’re interested. (If you have feedback on the code it’s welcome.)

18 Likes

Very cool, just compared it to the pulse osc in lojik and the aliasing is completely gone! Nice work :slight_smile:

1 Like

So good.

1 Like

Thanks!

@tomf I think to do sync properly I might need to create a new control, so I might be picking your brain about that at some point.

2 Likes

I was wondering where the sync was :slight_smile:
Please continue they’re fantastic!

1 Like

Took a while to get there, but I’ve added sync to the saw oscillator, and also reduced the CPU usage of both oscillators. Was ~3% per unit, now ~1.4% for the square and ~1.7% for the saw.

I’ve edited the top post with v0.0.2.

17 Likes

Nicely done :star_struck:

2 Likes