Sign in

How does Polyphone make low-def audio sound good?

Category: Coffee break
  • 37 9
    Message from tahutoa on
    I know it's everything to do with the sound engine, but like, the ability to make 12k Hz audio sound that good in other programs would be grand. FL Studio's DirectWave does something similar. I think it's maybe due to interpolation.

    In other words, assuming it's possible, what sound settings would I use in, say, Audacity, if I wanted to get that same quality (without having to resort to recording my speaker output)?
  • 417 0
    Message from Davy on 1
    Outch you just put your finger in a complex subject which is indeed the interpolation, which is used for
    • resampling data for matching the audio output sample rate,
    • changing the pitch (coarse / fine tune, modulations...).

    At first I simply used a linear interpolation
    https://en.wikipedia.org/wiki/Linear_interpolation 

    But in doing this, artifacts appeared when increasing the pitch of already high-pitched samples because of aliasing:
    https://en.wikipedia.org/wiki/Aliasing 

    I noticed that Fluidsynth doesn't have this drawback so I analysed their code and Polyphone is now using what appears to be a 7-order sinc interpolation formula but don't ask me to explain how it is working!!
    https://en.wikipedia.org/wiki/Whittaker%…nterpolation_formula 

    There are many interpolation functions and this one seems to respect the harmonic content of the sound wave particularly well.

Sign in or register to take part in discussions.

Polyphone needs you!

Polyphone is free but there are costs associated with its website and development. A small donation will help a lot.

Donate
Learn the basics Try a tutorial
Scroll to
top