Sample Rate Converter

Nov 7, 2012 at 1:23am

Sample Rate Converter

I have a custom sample rate converter that I want to run in my patch. Can I do something like say open a 48 kHz file, then re-sample it to 44.1 kHz and play it back as 44.1 kHz? From the SDK documentation, it looks like the whole MSP chain would work at a single sample rate. Thanks!

Nov 7, 2012 at 2:04am

you could use poly~ to downsample

Nov 7, 2012 at 7:47am

@Terry Downsampling with poly~ is only possible with powers of two.

The buffer~ object has a sr method that sets the sampling rate for the imported sound. Changing the sampling rate affects (or adjusts) the playback speed. The sampling rate of a file can be found using the sfinfo~ object.

Or do you mean you want to use your own method for sr conversion?

Nov 7, 2012 at 6:39pm

I want to use my own src to do the conversion. So I was wondering if I could create an MSP module that would have my src, However, I see that the whole chain seems to operate at one sample rate only.


You must be logged in to reply to this topic.