SNDFILE-RESAMPLE(1)

πŸ’– SNDFILE-RESAMPLE πŸ’–

okay so bestie, this is sndfile-resample from the General Commands Manual β€” it's a sample rate converter and it literally eats sample rates for breakfast. let's get into it πŸŽ€


✨ NAME ✨

sndfile-resample β€” sample rate converter πŸ¦‹


🌸 SYNOPSIS 🌸

sndfile-resample [-c number] -to rate input output
sndfile-resample [-c number] -by ratio input output

like, that's the whole vibe. you give it an input, you give it an output, you tell it how to change the rate, and it goes πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

so sndfile-resample is a sample rate converter that uses libsndfile for all the file I/O (reading and writing, the boring-but-essential part) and Secret Rabbit Code (aka libsamplerate) to actually do the conversion. no cap. 🐰

it works on any file format supported by libsndfile with any number of channels β€” the only limit is your host memory, which is honestly so iconic of it. 😭✨

πŸŽ€ the options, bestie πŸŽ€

The options are as follows:

  • -c number β€” pick your converter type from this list, fr fr:
    • 0 β€” Best Sinc Interpolator
    • 1 β€” Medium Sinc Interpolator (default)
    • 2 β€” Fastest Sinc Interpolator
    • 3 β€” ZOH Interpolator
    • 4 β€” Linear Interpolator
  • -to rate β€” convert to the specified sample rate. just say the rate you want, periodt.
  • -by ratio β€” change the sample rate by the given ratio. the ratio can be any positive real, and the resulting rate gets floored to an integer. for instance: changing the rate of 44100 by a factor of 1.3333 results in a sample rate of 58798. math ate that. πŸ”₯
  • --no-normalize β€” disable clipping check and normalization. that's it, that's the whole thing. πŸ™ˆ
heads up bestie: that last one turns off the clipping check and the normalization, so it's giving "i know what i'm doing" energy. proceed accordingly πŸ’€

🫢 SEE ALSO 🫢


🌈 AUTHORS 🌈

Erik de Castro Lopo <erikd@mega-nerd.com> πŸ‘‘


and that's the page!! this one came from Debian, dated October 9, 2016, and it's page SNDFILE-RESAMPLE(1) of the manual. mwah, go convert some sample rates bestie πŸ§šπŸ’œπŸ“

πŸ“¦ where this page comes from