Re: Music decompression and resampling
- From: "Pete Fraser" <pfraser@xxxxxxxxx>
- Date: Wed, 12 Apr 2006 19:10:09 -0700
"cr88192" <cr88192@xxxxxxxxxxxxxxxxxx> wrote in message
news:ed8a5$443dabbb$ca83b3d3$22993@xxxxxxxxxxxxx
"Pete Fraser" <pfraser@xxxxxxxxx> wrote in message
news:123r4m9nip4h360@xxxxxxxxxxxxxxxxxxxxx
"cr88192" <cr88192@xxxxxxxxxxxxxxxxxx> wrote in message
news:529e5$443d886c$ca83b3d3$10342@xxxxxxxxxxxxx
also, you are doing upsampling, which is fairly easy to implement and
fairly cheap using linear interpolation.
slightly higher quality might be to use quadratic or cubic
interpolation, but this is more complicated and slower (more samples
need to be taken into account and there is more involved math),
likewise, there is no real guerantee that the guessed curve is much more
accurate than a straight line anyways.
There certainly is.
You know precisely from the interpolation coefficients what the frequency
response will be, and from that you know exactly how much high frequency
droop and aliasing is going to occur.
yeah, but if the goal is being fast, then I wonder if that is enough to
justify the extra math involved.
Perhaps not, but higher order is audibly (and mathematically) better.
my testing with predictors and filtering implied that much beyond a
quadratic curve was not able to produce that good of predictions (and,
that said, quadratic was usually only best with 44kHz 16bit audio, vs the
11kHz 8bit audio I typically work with where often linear and half-line
prediction was best...). cubic curves were not that great, and quartic
curves were usually about useless...
Prediction is trickier. As the order of the predictor goes up, things get
better
for low frequencies, and worse close to Nyquist.
so, just on this, I would guess quadratic interpolation would be best in
general, or is cubic better in this case?... (eg, since we know the
following samples as well).
I think higher order is alway better. It has been 30 years since I dealt
with digital audio, but I can't think of any reason (other than complexity,
group delay, etc, that higher order shouldn't be better.)
Also, it doesn't need to be a polynomial. That's a good way of visualizing
what you're doing, but it just gives you a low-pass filter. Other approaches
will give different coefficients that are equally good (or better) but don't
represent interpolating polynomials.
.
- Follow-Ups:
- Re: Music decompression and resampling
- From: cr88192
- Re: Music decompression and resampling
- References:
- Music decompression and resampling
- From: Stefan Monnier
- Re: Music decompression and resampling
- From: cr88192
- Re: Music decompression and resampling
- From: Pete Fraser
- Re: Music decompression and resampling
- From: cr88192
- Music decompression and resampling
- Prev by Date: Re: Music decompression and resampling
- Next by Date: Re: Music decompression and resampling
- Previous by thread: Re: Music decompression and resampling
- Next by thread: Re: Music decompression and resampling
- Index(es):
Relevant Pages
|