Previous Up Next

28.2.11  Changing the sampling rate of an audio clip

The resample command resamples a clip to a desired rate.

Example

Assuming that the directory sounds contains example.wav, a wav file with a sample rate of 44100:

clip:=readwav("/path/to/sounds/example.wav"):; samplerate(clip)
     
44100           
res:=resample(clip,48000):; samplerate(res)
     
48000           

Previous Up Next