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?
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.
Should have read "SC source is generally go for looking at how to do stuff efficiently" …
there is some info about doing fast table lookup here:
C74 RSS Feed | © Copyright Cycling '74