Forums > Dev

How to interpolate within a wavetable oscillator?

March 12, 2010 | 1:25 pm

Hello Developers,

I’m currently building a wavetable-based oscillator like [cycle~] with some own functionality I need. I know that [cycle~] uses some kind of interpolation to calculate its output but I don’t know how is this done in an efficient way (I suppose there must be some trick that makes things faster than simply choosing the two closest values to the current phase of the oscillator and do the interpolation, which consumes a lot of CPU as I suppose). Can somebody give me some hints to do this?

Thank you,

March 12, 2010 | 5:32 pm

Have a look at SC, the SinOsc UGen for example:

SC source is generally looking at how to do stuff efficiently.

The key to this is avoiding doing an "if" in the main DSP loop for every sample. SC uses bit masking etc for this.

March 12, 2010 | 9:16 pm

Should have read "SC source is generally go for looking at how to do stuff efficiently" …

March 12, 2010 | 10:28 pm
Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Dev