Wavetable resize

I am using an array with a sample size of 2048 for wavetable OSC.

I’m thinking of loading an external audio file or an internal float array here.
When the sample size of the waveform to be loaded is less than 2048 or larger than 2048, I want a method to fit to 2048 size while preserving the characteristics of the waveform :confounded: