Skip to main content

Topic: Resampler plugin (Read 305797 times) previous topic - next topic

0 Members and 2 Guests are viewing this topic.
  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #250
I read here that dithering adds noise to the space in between the original frequencies and the upsampled to make it a more accurate upsampling.

No, that's not true. http://wiki.hydrogenaudio.org/index.php?title=Dither
If output bit depth is 24 then dither is unnecessary.

Would you recommend that I turn dithering on for this or perhaps Anti Aliasing? If I was to use dithering, is there a way to only apply the effect to the frequencies that must be upsampled?


This plugin doesn't perform any dithering itself.
About aliasing (not "anti aliasing"): IMHO it doesn't matter at such frequencies.

  • SoNic67
  • [*][*][*]
Resampler plugin
Reply #251
I understand that "best" is "-v" SOX option. What are the others? Is the "-l" implemented?
I am looking at this graphs (44.1>96):



Also, on SOX page it says:

SoX 14.2.0 High Quality: -b 90 -a

SoX 14.2.0 VHQ Linear Phase: -v -s

SoX 14.2.0 VHQ Intermediate Phase: -v -s -I

SoX 14.2.0 VHQ Minimum Phase: -v -s -M
  • Last Edit: 28 April, 2012, 08:39:03 PM by SoNic67

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #252
You can see the description of other modes in the changelog of ver. 0.6.6.
Low quality mode (-l) existed in in 0.6.0 but was removed in 0.6.0 (it isn't better than built-in PPHS anyway).

  • outerspace
  • [*]
Resampler plugin
Reply #253
Original sound (tone from 20 kHz to 96 kHz, 16 bit 192 kHz): http://img543.imageshack.us/img543/8640/orig.png

foobar2000 + SoX (resample to 44.1 kHz) -> analog input (recorded at 24 bit 192 kHz): http://img688.imageshack.us/img688/448/sox.png

Frequencies above 22.05 kHz is not filtered. How can it possible?
  • Last Edit: 28 May, 2012, 02:11:35 PM by outerspace

  • outerspace
  • [*]
Resampler plugin
Reply #254
foobar2000 + SoX (resample to 44.1 kHz) -> driver digital record (recorded at 24 bit 192 kHz): http://img444.imageshack.us/img444/4872/soxonlydigital.png

Sound file: http://www.multiupload.nl/EU93379O5P

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #255
It's either OS resampling or soundcard filter.

  • bandpass
  • [*][*][*][*]
Resampler plugin
Reply #256
Original sound (tone from 20 kHz to 96 kHz, 16 bit 192 kHz): http://img543.imageshack.us/img543/8640/orig.png

foobar2000 + SoX (resample to 44.1 kHz) -> analog input (recorded at 24 bit 192 kHz): http://img688.imageshack.us/img688/448/sox.png

Frequencies above 22.05 kHz is not filtered. How can it possible?

It's not possible. If it has frequency content above 22.05k, then it's not been resampled to 44.1k.

Inadequate filtering would lead to aliasing, i.e. unwanted frequency content below 22.05k, but that's not what your graphs show.

  • ei4ia
  • [*]
Resampler plugin
Reply #257
sorry if dumb question, but here it is: if input signal equals output (96kHz/24bit in and out, default SoX settings) does plugin process signal or it just passes unaffected?
Thanks

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #258
See posts #245-246.

  • Fabulist
  • [*]
Resampler plugin
Reply #259
Hello everyone,

First of all, thank you for this plugin lvqcl, really appreciate it.

Secondly, I would like to ask you guys some questions that somebody may, hopefully, be willing to answer considering I am pretty ignorant on general sound matters:

Please take in mind that I use ASIO for playback on a 2.1 THX system, and my sample rate can go as high as 48000 for ASIO (after that, I have totally distorted output, or no sound at all).

1. PassBand defines what will be passed to the bass (frequencies), correct?

2. Aliasing and Phase Response are supposed to improve quality over distorted sound, correct?

3. So assuming I do not have distorted sound and everything sounds great, should I disable them to get the maximum benefit, or can someone explain to me in simple words what they really do and how I can benefit from them?

4. Plugin irrelevant question: Should the Tone/sweep sample rate comply with my main rate (e.g. re-sampled to 48 KHz -> Tone/Sweep 48 KHz)?

I have read the technical information sheets posted here and in Sox and used Google a lot, but I am having difficulties understanding them and finding information that I can comprehend.

If anyone can help me or give me some suggestions on the matters mentioned, it would be much appreciated. 

Thanks in advance guys!

  • SoNic67
  • [*][*][*]
Resampler plugin
Reply #260
1. PassBand defines what will be passed to the bass (frequencies), correct?

No. PassBand is the whole audio band. there is no subwoffer separation and your PC speaker system doesn't have a dedicated input for that anyway.
2. Aliasing and Phase Response are supposed to improve quality over distorted sound, correct?

Wrong again. There is nothing that you can do with "distorted sound". Those parameters are related strictly to quality of upsampling, leave them as they are.
3. So assuming I do not have distorted sound and everything sounds great, should I disable them to get the maximum benefit, or can someone explain to me in simple words what they really do and how I can benefit from them?

Again you are wrong, read above. Just leave those sliders are they are default, don't check the "Allow aliasing" either.

  • Fabulist
  • [*]
Resampler plugin
Reply #261
Many thanks for replying to my questions - but a few more are born based on what you said:

So what should I put the PassBand at to get the best quality?

Also, what about Aliasing and Phase Response; default options are set for maximum quality and changing them will only worsen my output?

Is there a chance I get a simplified summary of what they are and how do they affect sound?

PS: Tone/sweep insight is welcome!

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #262
There are two links in the first post of this thread: to SoX FAQ and to help file.

  • Fabulist
  • [*]
Resampler plugin
Reply #263
There are two links in the first post of this thread: to SoX FAQ and to help file.


I read that but I am having difficulties understanding it 

Simplified answers to my questions are most welcome!

  • ametrano
  • [*]
Resampler plugin
Reply #264
I plan to use the component to downsample in my 24/96 -> 16/44.1 conversion.



Since in foobar's Converter Setup the "Output format" is before "Processing" I assume the downsampling is happing after the bit reduction.
Is it correct that the opposite would be better?
How can I accomplish that using foobar?
Is command line SOX the way to go?

thanks
  • Last Edit: 09 July, 2012, 05:57:51 AM by ametrano

  • kumbbl
  • [*][*]
Resampler plugin
Reply #265
bit reduction is always performed last - after all other processings!
  • Last Edit: 09 July, 2012, 10:18:24 AM by db1989

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #266
First processing, then converting to FLAC.

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #267

  • digicco
  • [*]
Resampler plugin
Reply #268
I have 384kHz/352.8kHz DAC.
Please add upsample x8 setting.

Thanks

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #269
If you want to resample 44100 to 352800 Hz, just type this value in the "Target samplerate" input box.

  • digicco
  • [*]
Resampler plugin
Reply #270
Resolved.
Great! Thank you so much 

  • eamon123
  • [*]
Resampler plugin
Reply #271
Sorry in advance for the longish string of questions, I'm copy&pasting them from another place I asked them and got *no answer* to any.

I'm using a FiiO E7 which only supports 41,000 or 48,000 Hz, because of USB limitations. What do you think of these settings for playback? The resampler is based on SoX code and WASAPI is supposed to bypass a lot of Windows's internal sound processing.

I'm allowing aliasing because it gives it an easier time with ringing artefacts and not much aliasing actually happens and that which does is mostly above the Nyquist Frequency so I won't hear it anyway. Should I enable dithering in WASAPI? How does dithering even work anyway? Does it only apply when upsampling, like in images? Also I see the passband is adjustable. I have no idea why? I set it to 96, not the maximum 99% because I figured it must do something good to lower it and I can sacrifice the top 500 Hz to get this good thing. I hope this doesn't just save CPU cycles or something. Phase response turns preringing into post ringing, right? I figure post ringing is more acceptable than preringing when listening so I'm going with this.

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #272
1) this plugin doesn't perform any dithering
2) About passband: http://www.hydrogenaudio.org/forums/index....mp;#entry626176
Quote
A resampler's band-width setting determines how much of the fre‐
              quency content of the original signal (w.r.t. the original  sam‐
              ple rate when up-sampling, or the new sample rate when down-sam‐
              pling) is preserved during conversion.  The term `pass-band'  is
              used  to  refer  to  all  frequencies up to the band-width point
              (e.g. for 44.1kHz sampling rate, and a resampling band-width  of
              95%,  the  pass-band  represents  frequencies from 0Hz (D.C.) to
              circa 21kHz).  Increasing the resampler's band-width results  in
              a  slower  conversion  and can increase transient echo artefacts
              (and vice versa).

  • francesco
  • [*][*][*][*]
Resampler plugin
Reply #273
Uploaded here

Good quality, fast resampler (~2 times faster than PPHS Ultra, although ~2.5 times slower than regular PPHS). Minimum / intermediate / linear phase.
Any comments?

Added: If you want to know what settings are best:
1. Read SoX FAQ, "What are the best 'rate' settings to resample a file and retain the highest quality?"
2. This post: http://www.hydrogenaudio.org/forums/index....st&p=626176 (an excerpt from SoX help)
3. Feel free to experiment and decide what's best for you.

hi
amazing
may i ask which is the lastest version for 1.1.17 for xp?
is this one ,isn't
thanks

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Resampler plugin
Reply #274
The latest is the latest: 0.8.1.