Solved - I am resampling on both voice level (to resample when transposing is being made - playing the recorded sample at different speed) and on Sampler level.
On voice level I used 1 CatmullRomInterpolator for each rendered channel.
On Sampler level I used ResamplingAudioSource. I wrapped the sampler in a SamplerAudioSource and connected it this way to the RAS - here is how I’ve done it: How do I wrap a Sampler/Synthesiser inside of an AudioSource?
I haven’t measured performance, but I assume the CRInterpolation is quite faster than the ResamplingAudioSource. This is my reasoning for resampling at 2 places - it will be too expensive to use the heavier RAS on every voice, so there I do the simpler and lighter interpolation, but on sampler level, higher-quality resampling is acceptable (and critically needed).
I am only unsure of how acceptable is the quality of the CRInterpolation since in my current scenario I don’t care about transposing… I guess I’ll find out.
I hope this is helpful to someone.
P.S.
- I’ve noticed that on my last few topics there were no responses and I suspect I might be asking very basic question… If this is the case, please accept an apology for my ignorance. This probably isn’t an excuse, but I’ve studied DSP (and C++, JUCE, etc.) for something like 6 months, so I am still pretty new to all of this.
