We invite you to join us in this evaluation of future consumer delivery formats. FLAC is a lossless encoding of WAV-files derived directly from our production original used for the SACD and Pure Audio Blu-ray. All resolutions and encodings are derived from the same original DXD source files. Please send us an e-mail and share your experience on your practical experience with these file formats. Enjoy the music!

WARNING: These HiRes audio files are not supposed to be studied by the deaf, blind, and the stupid.If ALSA/PulseAudio users do not hear the difference, they may discuss their problems on Ubuntu/Arch Linux forums.

There are two sorts of HiRes audio files available for download on the 2L website:1. the original recordings,2. the results of downsampling to different low quality formats, such as 24bit/96kHz and 24bit/192kHz

It might be obvious that Morten Lindberg selected special files for "evaluation of future consumer delivery formats".Mozart's "Violin concerto in D major" proved to be the hardest nut to crack for any resampler. It is the first in the list, and there is a reason for this.NOTE: The deaf, blind, and the stupid may not notice the difference.

Thus, you have the samples for "evaluation":01_2L_Mozart_24bit_352.8kHz.wav is the original recording.01_2L_Mozart_24bit_96kHz_Weiss_SARACON_SRC.flac seems to be an example of "future consumer delivery formats", a kind of "digital crap of the future".

Comparing them in our studio we find only subtle differences from DXD (24BIT/352.8kHz) down to 192kHz and 96kHz. The obvious degeneration is from 96kHz down to 48kHz. http://morten.lindberg.no/19537/

It is not completely true, because "denaturation of sound" is already obvious on sonograms of 96kHz FLACs.It is obvious on sonograms and it is audible, of course. Otherwise, 192kHz FLACs would not make much sense.NOTE: The deaf, blind, and the stupid may not notice the difference.

Before we dig deeper into the nature of crap, a word about the proper tools. Of course, every scientific research requires certain tools to succeed, not just tools but relevant tools. There are, perhaps, exact scientific instruments, which might be utilized for the purpose. If they are missing, one may try what is available. There is a kind of penknife, with which to dig into the crap: SoX, "the Swiss Army knife of sound processing programs" http://sox.sourceforge.net/ Since SoX is free, "open source", and "cross-platform", it can be used for education purposes. Although, of course, it might obvious that the deaf lunatics are not able to learn anything, except for "religious knowledge", or Cargo Cult Science http://calteches.library.caltech.edu/51/2/CargoCult.pdf That is why they constantly fail to learn from experience. The story of PulseAudio proves this point.

Keep in mind that sonograms represent Fourier series rather then "frequencies". If huge distortions are noticeable on sonograms, it means that the particular resampler, such as Weiss SARACON Sampling Rate Converter, or other sort of "software crap" (softcrap), failed miserably.

The distortions of "digital crap" inside 96kHz FLACs are so huge that they can be easily detected with SoX sonograms.Since the distortions had been produced by the softcrap resampler, they look similar to overtones, in the sense that they are somehow localized inside certain bands:35kHz - 40kHz huge distortions29kHz - 32kHz huge distortions 14kHz - 20kHz huge distortions

We have already observed a similar phenomenon with the Audacity/Nyquist resampler.It might be natural to presume that there are big distortions below 14kHz, which might not be easily detected with SoX sonograms. There are likely to be big distortions, and there are obvious distortions below 14kHz. Although, of course, the deaf, blind, and the stupid may fail to notice them.

This will produce a sonogram: sonogram_01_2L_Mozart_24bit_96kHz_Weiss_SARACON_SRC.pngThe sonogram shows information only from the second (right) channel, and of 3.1 seconds of audio starting from 5 seconds in.

Step 7: Compare sonograms of "digital crap" and the original DXD Wave.

CONCLUSION: Mozart's "Violin Concerto no. 4 in D major" (KV 218) can be used in a "blind test" with deaf lunatics. Although, of course, they are not intelligent enough to accept an idea that they need to undergo a medical examination before it is too late.

There is another sort of "digital crap" which is said to be better than any other sort of crap.It is also available for download on the 2L website http://www.2l.no/hires/index.html

Since the crap is available, and it is free, anyone can study the quality of crap with sonograms, and decide for himself (or herself) which crap is better. Although, of course, the scientific study of crap is a privilege for the elect. The deaf, blind, stupid, and ignorant may better abstain from scientific studies, because such studies might be dangerous for health, if performed incorrectly. The users of ALSA/PulseAudio may discuss their problems on Ubuntu/Arch Linux forums.

WARNING: These HiRes audio files are not supposed to be studied by the deaf, blind, and the stupid.If ALSA/PulseAudio users do not hear the difference, they may discuss their problems on Ubuntu/Arch Linux forums.

Mozart's "Violin concerto in D major" (KV 218) in CD format can be obtained in many different ways:1. It can be purchased.2. You may ask Morten Lindberg to upload the file you need for testing.3. You can downsample the original DXD Wave with GRC3 SRC, or SoX, or else.

Notice that the width and the height of the sonogram are now divisible by 16 (Image Size: 944x576 pixels). This means that it can be easily zoomed with your preferable image viewer.If you compare this sonogram with the sonogram of the original DXD Wave, and you may see that the Stupid Sampling Theorem is really true in an absolute sense http://en.wikipedia.org/wiki/Nyquist%E2 ... ng_theorem

Have you ever tried to resample images with Adobe Photoshop, or GIMP?

Do you really want to modify the image?Resizing will cause drastic changes to the content of the image, and avoiding or minimizing the change should be of greatest importance. Perhaps just a slight Shave of the edges, or a more general Crop of the image will produce a better and more desirable outcome than a wholesale resize of the image. It generally will look better.The resize operator has been very carefully designed to try to produce the best possible result for real world images. That is not to say you can't use it for diagrams, or line drawings, though for that type of image you may need to use some of the more advanced options we'll look at later. http://www.imagemagick.org/Usage/resize/#resize

It might be an education problem, a lack of mathematical knowledge, perhaps.In Germany, they have been trying to do something about this problem: http://en.wikipedia.org/wiki/Programme_ ... AssessmentIt seems to be a kind of ritual practice, which is believed to be effective.The authorities should demonstrate to the public that they are doing something about problems.

Chapter 11: Fast Fourier Transform Tools. Chapter 11 and the software file qfft.mac have been revised and greatly simplified to allow use of the new simplified Maxima package fft.lisp, effective with Maxima ver. 5.19.0, August 2009. The latex code file is made available for the convenience of instructors who would like to incorporate parts of Ch. 11 in their class notes and handouts.[PDF] Edwin L. Woollett - Maxima by Example - Ch.11. Fast Fourier Transform Tools 11.1 Examples of the Use of the Fast Fourier Transform Functions fft and inverse fft. We discuss the use of Maxima's fast Fourier transform package fft.lisp, which ... http://www.csulb.edu/~woollett/mbe11fft.pdf

Fourier Analysis (classic wave equations and corresponding graphs)Fourier analysis is a fascinating activity. It deals with the essential properties of periodic waveforms of all kinds, and it can be used to find signals lost in apparently overwhelming noise. As just one example of its usefulness, if SETI (the Search for Extraterrestrial Intelligence) should ever detect an alien signal, that discovery will be made using Fourier analysis. http://www.arachnoid.com/maxima/fourier_analysis.html

Fast Fourier Transform – Acoustics of Music – Part 5Welcome to Part 5 of our series Acoustics of Music. This article will describe the Fast Fourier Transform tool or the FFT Meter which is part of the Steinberg computer program called Wavelab v6.0. http://donrathjr.com/fast-fourier-transform/

To understand the nature of "digital crap" we need to perform a "scientific experiment".This can be done as follows:1. create a very simple wave,2. apply a very simple transformation to it,3. study sonograms.

You will see odd overtones of 5kHz (5kHz, 15kHz, 25kHz, 35kHz, 45kHz) and some other frequncies above and below 5kHz, for example: 1kHz (see the screenshot). This means that, if a resampler clipped a 50kHz sine wave, distortions might be seen on sonograms around 10kHz. This may explain distortions produced by Weiss SARACON Sampling Rate Converter.

CONCLUSION: If a digital signal consists of many different frequencies, a transformation of it (such as clipping, resampling, and the like) can produce a lot of overtones and other "frequencies", which all together might be perceived as "digital noise". More exact resamplers produce less noise. If noise is "small", it can be filtered out. This is how resamplers work. This is how they produce "digital crap".

It might be stating the obvious, but the OSS4 SRC should clip certain frequencies simply because it is a resampler. This might be the reason why a standalone version of GRC3 SRC is not available for download. Otherwise, OSS4 users may study it and file bugs, if distortions are obvious on sonograms.

The Russian SRC test was designed by Dr. Alexey Lukin, Department of Computational Mathematics & Cybernetics of Moscow State University.The results were published on the Canadian website of "digital crap producers" http://www.infinitewave.ca

It makes sense to read "Help" and "FAQ", although they might be incomprehensible for normal human beings.

We are invited to believe that the results of the test are not biased:

Are these results biased? I’ve heard that test designer Alexey Lukin is working at iZotope – is this why iZotope is showing (one of) the best results?This web-site has been started without any participation of Alexey Lukin. It originally featured only 1 kHz tone spectra after conversion from 96 kHz to 44.1 kHz. Alexey Lukin joined the team later and proposed several new tests, such as a sine chirp and pre-post ringing test. http://src.infinitewave.ca/faq.html

We can also create a very special test and make it "open source". Why not?

Requirements:1. Test should be very simple and very effective.2. It should be so simple that it could be easily reproduced by any Ubuntu user.3. It should be an "open source" test, which can be performed with "open source" software.

NOTE: Our test is not "biased", because it is designed to kill all resamplers, except for "very scientific" ones.

Step 1: Install the "open source" tools, with which to perform the test:

#! /usr/bin/octave -qf## file: rabbit-shooter.sh## a sample Octave program to generate odd overtones of 1kHz## designed to demonstrate "audible distortions" produced by Secret Rabbit Code (aka libsamplerate)# published on the OSS4 forum on 23 October 2011.## Source of the "sine-wave" script: http://www.tty1.net/blog/2009-09-04-audio-with-gnu-octave_en.html## How to use:# 1. make the script "executable"# 2. run from terminal: ./rabbit-shooter.sh# 3. this will produce a special audio file: rabbit-shooter.wav [32bit 96kHz]## You do not need to listen to it, of course. # If you are very intrigued, you can open it with Audacity and plot the spectrum: Audacity → Analyze → Plot Spectrum# Do not forget to mark the entire wave: Ctrl+A## NOTE: GNU Octave should be installed, of course. Otherwise, the magic script would not work.# Arch Linux: sudo pacman -S octave

This will produce a special audio file: rabbit-shooter.wav (32bit/96kHz)You do not need to listen to it, of course. If you are very intrigued, you can open it with Audacity and plot the spectrum: 1. mark the entire wave: Ctrl+A2. Analyze → Plot Spectrum.

___________________-EDIT:WARNING: The sonograms are not supposed to be studied by the blind, stupid and ignorant.If M$ Windows users do not see distortions on certain sonograms, they may need to visit doctors.

Igor, I don't see any distortion in your spectrograms. Can you circle it or describe what you think the distortion is? Perhaps you just see some side lobes of the spectrum, which can be easily eliminated by using a more powerful weighting window during your spectrogram calculation.

Alexey Lukin wrote:Igor, I don't see any distortion in your spectrograms. Can you circle it or describe what you think the distortion is? Perhaps you just see some side lobes of the spectrum, which can be easily eliminated by using a more powerful weighting window during your spectrogram calculation.

Hi Alexey!

1. If you do not see, you may need to visit doctors.2. If you pretend to be a demagogue, you may try to explain why SoX produces other spectrograms without distortions.3. If you do not know what is "tanh", you may ask kids to explain.4. If you want to learn Linux, you may try Arch LiveCD.

Perhaps, you might have failed to notice the warning on the first page.

This will produce a picture: ~/Desktop/tanh_sin.pngIf you are not blind and stupid, you may notice that GnuPlot failed to intepolate it correctly. To improve the quality of interpolation, you may need to increase resolution, that is, "sample rate" and "bit depth". The correct curve should be smooth, without "sharp corners", see: http://en.wikipedia.org/wiki/Smooth_function

The mathematical formula of the wave is defined. Therefore, the "exact" wave of 32bit/44.1kHz can be easily built with GNU Octave, or MATLAB. To build it with GNU Octave, you have to change the parameter "sps" (sample rate) in the magic script "rabbit-shooter.sh". The "exact" wave of 32bit/44.1kHz has "sharp corners", of course, because the sample rate (44.1KHz) is not sufficient to make it smooth. Therefore, if you build a sonogram of it with SoX, the result is a strange picture with "strange distortins". The sonograms of downsampled waves are much more "smooth", because the resamplers are not exact.

In short, the method works like "litmus test" http://en.wikipedia.org/wiki/Litmus The smallest deviations from the "exact wave" can be easily detected with SoX sonograms, because the slightest deviations are dramatically emphasized by certain "non-linear phenomena". The method works similar to the "strange attractor" http://en.wikipedia.org/wiki/Lorenz_attractor It is a kind of "no-linear magic", of course". It is a very precise method to measure the exactitude of resamplers. You can simply reduce (or increase) the "sharpness" of the mathematical formula, which defines the test wave, (by changing coefficients in the Octave script "rabbit-shooter.sh") and compare sonograms. The stupid and ignorant may try "powerful weighting windows" (or other sort of crap) instead. The M$ Windows users may preach their "scientific beliefs" on Windows forums.

To summarize: It might be obvious that "linear logic" does not work with non-linear functions. The kids, who did not study math in the primary school, failed to notice this. Although, of course, they might be smart enough to pretend to be "scientists" in order to fool competitors on the market. The so-called "scientific knowledge" tends to be used to justify "closed source" tests and other deceptions. This is how the market works. It is virtually impossible to make profits, if you do not fool naive customers and competitors. If the "digital crap" is justified by the Stupid Sampling Theorem, it is "consumable" from the "scientific point of view":

The Nyquist–Shannon sampling theorem states that perfect reconstruction of a signal is possible when the sampling frequency is greater than twice the maximum frequency of the signal being sampled, or equivalently, when the Nyquist frequency (half the sample rate) exceeds the highest frequency of the signal being sampled. If lower sampling rates are used, the original signal's information may not be completely recoverable from the sampled signal.[2] For example, if a signal has an upper band limit of 100 Hz, a sampling frequency greater than 200 Hz will avoid aliasing and allow theoretically perfect reconstruction.The full range of human hearing is between 20 Hz and 20 kHz.[3] The minimum sampling rate that satisfies the sampling theorem for this full bandwidth is 40 kHz. The 44.1 kHz sampling rate used for Compact Disc was chosen for this and other technical reasons.http://en.wikipedia.org/wiki/Sampling_r ... ng_theorem

Since the mathematical formula of the wave is defined, it is possible to measure the difference between the exact wave and the downsampled one in a very precise way.

It is not difficult to prove that distortions are audible, because the difference is really huge. It is so huge that it is sufficient to subtract two waves and build a sonogram of the difference. Since the difference is incredibly huge, we have to verify the method in some way. Otherwise, you may not believe your eyes, when you see the sonogram of the difference.

When you see the sonogram of the difference, you may not believe your eyes.

It is not difficult to verify the test with Audacity. You can simply open waves with Audacity and zoom into them to see the shape of the waves. The shape of the exact wave is similar to that which was built with wxMaxima and GnuPlot. The shape of the downsampled wave looks very strange, it seems to be a kind of "genuine crap" (the screenshot is in the Attachment). You may try to imagine what kind of "music" of "very advanced quality" can be produced with ALSA and Audacity (it has libsamplerate inside) http://wiki.audacityteam.org/index.php?title=Resample It might be something very different from that of Weiss SARACON SRC. It seems that ALSA "musicians" are really deaf to a certain extent. In any case, they may surely need to visit doctors before it is too late:http://www.sennheiser.com/sennheiser/ho ... ing_livinghttp://video.about.com/deafness/Hearing-Test.htm

Alexey Lukin wrote:Igor, I don't see any distortion in your spectrograms. Can you circle it or describe what you think the distortion is? Perhaps you just see some side lobes of the spectrum, which can be easily eliminated by using a more powerful weighting window during your spectrogram calculation.

If someone does not see any distortion in the sonograms, he may urgently need a medical examination. It is very probable that "powerful weighting windows", iZotope and other M$ Windows software are dangerous for health. This is how the market works. If you want to sell a software product - such as a screen reader for the blind - you have to create a market for it http://en.wikipedia.org/wiki/Screen_reader If you are going to create something, you have to destroy something else. It is a proverbial truth that creation without destruction is impossible.

The sonograms and the scripts are in the Attachment.WARNING: The sonograms are not supposed to be studied by the blind, stupid and ignorant.If M$ Windows users fail to see or understand something, they may discuss their problems on Windows forums.

To avoid confusion, it might be necessary to note that the Stupid Nyquist–Shannon sampling theorem has nothing to do with mathematics. It was originally designed as a calculated deception (gezielte Tauschung) to fool the stupid. If you have tried to read handbooks on Mathematical Analysis, you might have noticed that mathematical theorems have "necessary and satisfactory conditions", which are clearly defined. If the conditions are not satisfied, mathematical theorems do not apply. The conditions of mathematical theorems are mathematical constructions: formulas, equations and the like. They are not material objects of the real physical world. If the conditions of a particular theorem can never be satisfied in terms of mathematics, this theorem belongs to theology and religion (or magic), it is not a mathematical theorem.

The Stupid Nyquist–Shannon sampling theorem is a perfect example of Cargo Cult Science. That is why the promised Cargo (that is, "perfect reconstruction of a signal") constantly fails to arrive.

In the South Seas there is a cargo cult of people. During the war they saw airplanes land with lots of good materials, and they want the same thing to happen now. So they've arranged to imitate things like runways, to put fires along the sides of the runways, to make a wooden hut for a man to sit in, with two wooden pieces on his head like headphones and bars of bamboo sticking out like antennas – he's the controller – and they wait for the airplanes to land. They're doing everything right. The form is perfect. It looks exactly the way it looked before. But it doesn't work. No airplanes land. So I call these things cargo cult science, because they follow all the apparent precepts and forms of scientific investigation, butthey're missing something essential, because the planes don't land.Richard Feynman, Cargo Cult Science (1974).http://www.lhup.edu/~DSIMANEK/cargocul.htm

CONCLUSION: The so-called "audio engineers" invariably fail to receive the much desired Cargo, because "they are missing something essential". To be effective, the magic rituals of Cargo Cult Science must be performed correctly. Otherwise, the promised Cargo may never arrive. A slightest mistake in magic rituals may render them ineffective.

Magic has a twofold part to play. First it overcomes ignorance and impotence. When a person wants something urgently he takes all the practical steps open to him. If, notwithstanding, the goal is still out of reach, he falls back on magic to bridge the gap.Ian Hogbin, The Island of Menstruating Men, 1970.

The "closed source" software is not a big problem. The real problem is "ignorance and impotence". The only solution to it is a powerful magic.

When a European attempts to explain to a Kanaka the 'truth about cargo' he is merely explaining to himself how he thinks European goods are made; and the Kanaka is satisfied that the European has a special technique whereby he gains access to cargo...The more administrative officers tried to explain to Yali the 'truth about cargo' the more he would feel... that white men had a 'secret' which they were holding back from Kanakas.Kenelm Burridge, Mambu (1960).

It might be obvious that GnuPlot interpolated the wave, tanh(25*sin(a*t)), as precisely as the resolution permits, this is, with maximum exactitude, but libsamplerate and other resamplers interpolated it with huge distortions. This means that those resamplers have been created by the ignorant.

Since 44.1kHz sample rate is not sufficient to preserve the "smoothness" of certain signals, the stupid resamples go astray and produce huge distortions. To predict such distortions, one may need a mathematical knowledge at the level of the primary school. In our day, many kids have digital photo cameras. They might have already learned, perhaps, from their own experience that low resolutions inevitably cause distortions. Do not forget, however, that Cargo cultists constantly fail to learn from experience, simply because any empirical truth tends to be refused, if it contradicts the Cargo Myth and other beliefs.

Truth does depend on geography, especially mathematical truth. What is true in America is not necessarily true in Russia, and other way round. That is why Grigori Perelman tends to ignore the International Mathematical Union together with their prizes, medals, and other ritual symbols and ceremonial performances, which have been designed to imitate "exact science" http://en.wikipedia.org/wiki/Grigori_Perelman The International Mathematical Union is a social institution first of all. It must have, therefore, certain ritual symbols, magic ceremonies and other secular rites, which justify its existence as a Church of Exact Science, or, perhaps, more precisely, a Church of Exact Cargo Cult Science. The Clay Millennium Prize is a US$1 million prize for a correct solution to any of the Millennium Prize Problems. These problems were said to be the most important mathematical problems http://en.wikipedia.org/wiki/Millennium_Prize_Problems We are invited to believe that these problems are really very important, because the prize is so high. However, since the US currency has already been essentially devalued by inflation, the "impersonal market forces" may fail to establish "international mathematical truths". The validity of mathematical truths apparently depends on the efficacy of the "invisible market forces" and "exchange rates" http://en.wikipedia.org/wiki/Exchange_rate This might be the reason why mathematics became as exact as economics (in this sense). If you want your medals and awards to be accepted, you have to persuade others that you are not ignorant Cargo cultists. Otherwise, sensible people may refuse to participate in your ritual performances, such as "scientific congresses", "congregation meetings" and the like. If you were awarded a medal for "prominent lunatics", you would decline to accept the award. Right? To appear at the international congress of "Exact Cargo Cult Science" is to accept the title of "Cargo Cult Scientist". That is why Grigori Perelman refused the "highest honor in mathematics" from the self-proclaimed "mathematical community". In Anthropological terms, Grigori committed a symbolic action, that is, the action which has a "symbolic meaning". This action was designed for the purpose. The symbolic meaning is rather obvious. Think of "Jesus Christ and the money changers" http://en.wikipedia.org/wiki/Cleansing_of_the_Temple The very idea that mathematical truth can be verified in terms of money is not likely to be acceptable for a Russian mathematician. If money is now a symbol of "scientific truth", this symbol has to be devalued. Grigori deliberately desacrificed certain "ritual symbols and symbolic ceremonies", largely because, perhaps, he believed that mathematics is not a religion, or theology. Whether it was a candid symbolic action of a naive idealist or not, Grigori Perelman did refuse the honor from men of questionable honor, thereby earning the true and lasting honor of the scientific community. http://www.nytimes.com/2006/08/22/scien ... -math.html

CONCLUSION: Since mathematical truth depends on geography and "exchange rates", you have to think for yourself instead of relying on "stupid theorems" of Cargo Cult Science. If you want to achieve "analogue qualities" you have to use extremely high resolution and GnuPlot (instead of stupid resamplers). Downsampling can never be exact, it always means a reduction in sound quality. Downsampling is a kind of lossy compression, it always means a loss in sound quality. The result is similar to that of Mp3 compression http://en.wikipedia.org/wiki/Lossy_compression Downsampling with a stupid resampler, such as libsamplerate, means a dramatic loss in sound quality, although, of course, ALSA/PulseAudio users may not hear the difference. Those, who can hear the difference, tend to say something like this:

The "very scientific resampler", which can do the work perfectly, is not yet ready for use, although, of course, there is an imperfect one, which can do the work much better than anti-scientific ones.

Digital eXtreme Definition is a professional audio format that brings "analogue" qualities in 32 bit floating point at 352.8 kHz. DXD preserves 11.2896 Mbit/s (4 times the data of DSD). http://www.2l.no/hires/index.html

If a wave is recorded at 64bit/5000000kHz, a kind of "linear interpolation" might be sufficient to achieve "analogue qualities".

If the fool would persist in his folly he would become wise. William Blake.

IGNORANCE IS STRENGTH.George Orwell, 1984.

The stupid libsamplerate fails with the square wave, and it fails dramatically, simply because it is anti-scientific. It is a kind of "genuine crap", which can only be created by absolutely ignorant Linux developers. That is why it produces huge distortions. The absolute ignorance is the ultimate freedom of thought, especially, if it is "open source" ignorance. It is the freedom to think how you want, it is intellectual liberty without any restrictions. This might be the reason why libsamplerate was implemented in ALSA, Audacity and other "open source" software. This is the obvious proof that "open source" developers are absolutely ignorant of mathematics. Ignorance and only ignorance liberates, and "open source" ignorance liberates absolutely. The "open source" Cargo cult does produce the ultimate intellectual freedom (in this sense). The story of PulseAudio proves this point.

Notice that the original wave, tanh(25sin(at)), is not a square wave. It is a perfectly smooth function without "sharp corners" and "discontinuities" http://en.wikipedia.org/wiki/Smooth_function It has, of course, a Taylor series, and its Fourier series can be easily derived from its Taylor series through the help of Maxima or Maple. However, this smooth function becomes a square wave, when the resolution is not sufficient . It becomes a square wave with discontinuities simply because the sample rate 44.1kHz is too small. That is why the Gibbs phenomenon occurs http://en.wikipedia.org/wiki/Gibbs_phenomenon

The square wave does not have a Taylor series, because it has discontinuities. It has a Fourier series which does not converge because of the same discontinuities. It is the failure of this particular Fourier series to converge that causes the Gibbs phenomenon. The anti-scientific algorithm of the stupid libsamplerate fails to converge for the same reason. It is the dramatic failure of the stupid libsamplerate that produces huge distortions. All other anti-scientific resamplers, which are based on the Stupid Nyquist–Shannon sampling theorem, are likely to demonstrate similar failures with square waves. It might be interesting to test OSS4 resamplers to see how stupid they are. The most stupid resampler might be that of iZotope.

It is not difficult to explain this phenomenon in ordinary human language. It is really very simple. No special knowledge is required. Imagine a series of smooth functions which converges to a certain function. If it converges in a normal sense (for example: the maximum difference tends to zero; this is actually what you want), the result should be a smooth function, or, at least, a continuous function (it depends on how you define the "norm"). This means that a series of smooth functions cannot converge (in a normal sense) to a discontinuous function. That is why the Gibbs phenomenon occurs, when you attempt to approximate a square wave with Fourier series. If you are trying to approximate square waves by anti-scientific methods of Cargo Cult Science (through the help of libsamplerate or other crap), the result is likely to be a dramatic failure.

Notice that discontinuities are inevitable, because digital signals are discreet signals by their very nature http://en.wikipedia.org/wiki/Discrete_signal There are scientific methods to deal with discreet signals. They have not been implemented in "open source" software simply because the "open source" developers are not intelligent enough to understand any scientific methods. They firmly believe in the efficacy of anti-scientific methods, and, therefore, such methods have been, in fact, implemented in "open source" software. The reason is obvious. Any crap is believed to be "good", if it is "open source". This explains why PulseAudio has been enforced in major Linux distros. They still believe that PulseAudio might be somehow improved, because it is "open source". They are not able to learn from experience, because "they are missing something essential". The ability to learn from experience implies a certain discipline of the mind, but any discipline means a restriction on freedom. You cannot permit yourself to indulge in utopian dreams, if you are going to learn from experience. The study of scientific methods also requires a certain discipline of the mind. If it is missing, the study of scientific books does not make much sense. Such discipline of the mind cannot be learned by reading books. It does require a very special education and training under the supervision of gurus. It might be stating the obvious, but any discipline of the mind is not compatible with the ultimate intellectual liberty and the "open source" Cargo cult ideology in general.

The Russian "exact" resampler, pcm_conv v.1.0.3.8, is quasi-scientific, and, therefore, it demonstrates a kind of Gibbs phenomenon with the same square wave. The screenshot is in the Attachment. You can compare it with pictures in Wikipedia http://en.wikipedia.org/wiki/Gibbs_phenomenon

http://en.wikipedia.org/wiki/Gibbs_phenomenonIn practice, the difficulties associated with the Gibbs phenomenon can be ameliorated by using a smoother method of Fourier series summation, such as Fejér summation or Riesz summation, or by using sigma-approximation. Using a wavelet transform with Haar basis functions, the Gibbs phenomenon does not occur.....In signal processing, the Gibbs phenomenon is undesirable because it causes artifacts, namely clipping from the overshoot and undershoot, and ringing artifacts from the oscillations. In the case of low-pass filtering, these can be reduced or eliminated by using different low-pass filters.In MRI, the Gibbs phenomenon causes artifacts in the presence of adjacent regions of markedly differing signal intensity. This is most commonly encountered in spinal MR imaging, where the Gibbs phenomenon may simulate the appearance of syringomyelia.

In short, the Russian resampler might be improved, but this may require some mathematical knowledge at the level of the first semester of math in a Russian university. The only problem is that "audio engineers" cannot consume this sort of knowledge, simply because they firmly believe in the truth of the Stupid Nyquist–Shannon sampling theorem and other anti-scientific theories.

CONCLUSION: Petrov's resampler is not exact. It does not produce huge distortions, but the distortions are audible (the sonogram is in the Attachment). Since the Linux users are not likely to be able to hear the difference, they may not notice such distortions. In any case, Petrov's resampler is much better than the stupid libsamplerate and other anti-scientific resamplers. The true audiophiles, however, may not agree to listen to "digital crap" of any sort, because it causes the irreversible deterioration of hearing capacity. This does not contradict common sense. On the contrary, it follows from common sense logically. If you drink vodka every day, you will never become a true wine connoisseur, because you will never be able to notice the difference. This should be obvious. The victims of psychoacoustic experiments will never be able to hear the difference, because such experiments cause permanent hearing impairment.http://en.wikipedia.org/wiki/Psychoacousticshttp://www.sennheiser.com/sennheiser/ho ... ing_living

Cargo cults: Are you a member?If you are a computer programmer, a faithful church goer, or a real estate developer, a lot of your practice may be based on sheer nonsense, and you may not know it. You may have fallen prey to a Cargo Cult... Cargo Cult mentality is insidious, often invisible and extremely difficult to detect. How much of your life, your beliefs, your work, your practices are the result of the Cargo Cult phenomenon? Think about it. http://isthereanybodyoutthr.com/cargo-c ... -a-member/

Interpolation is doomed to failure simply because it is impossible to produce an exact information from the absence of information. It follows that upsampling is much more problematic than downsampling. You do not need to be an expert in mathematics to understand that the Nyquist-Shannon sampling theorem is a Cargo cult mythology. An ordinary common sense should be sufficient to distinguish scientific truth from complete nonsense. It is not surprising that downsampling can produce audible distortions. You may try to imagine what kind of distortions can be produced by further upsampling of "digital crap". It is supposed to be converted to an "analogue signal" by your soundcard or DAC. Right? This kind of conversion means upsampling to an infinite sample rate. Are you going to believe that "digital crap" can be converted to "genuine sound" by invisible magic forces?