Data Interpolation and Its Effects on Digital Sound Quality - McMurry ...
Data Interpolation and Its Effects on Digital Sound Quality - McMurry ...
Data Interpolation and Its Effects on Digital Sound Quality - McMurry ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
18Chapter 3: ResultsFor the results of testing c<strong>on</strong>tained herein, to dem<strong>on</strong>strate each of thehypotheses given in the previous examples, let our first test sample be definedby the equati<strong>on</strong> f(x)=3sin(x). This is an example of a perfect sound wave(meaning a c<strong>on</strong>stant t<strong>on</strong>e, volume, <str<strong>on</strong>g>and</str<strong>on</strong>g> pitch is assumed). We will do threedifferent samplings <strong>on</strong> this equati<strong>on</strong>, each time increasing the sample rate. We’llstart by just sampling the zeros <str<strong>on</strong>g>and</str<strong>on</strong>g> the extrema of the functi<strong>on</strong> (so that oursample domain is 0, π/2, π, 3π/2, 2π), then the sec<strong>on</strong>d time through the halfwaypoints will be added in (so our sample domain will be 0, π/4, π/2, 3π/4, π, 5π/43π/2, etc.). In our last sample, we’ll double the sampling rate again, <str<strong>on</strong>g>and</str<strong>on</strong>g> add inthe halfway points between those points.Our sec<strong>on</strong>d test sample used a r<str<strong>on</strong>g>and</str<strong>on</strong>g>om number generator to generate 11y values between -10 <str<strong>on</strong>g>and</str<strong>on</strong>g> 10 for x values of 0 through 10. I then c<strong>on</strong>nected thesepoints by h<str<strong>on</strong>g>and</str<strong>on</strong>g> to make a sound wave (note with 11 data points this sound wouldbe of extremely short durati<strong>on</strong>: about 4 millisec<strong>on</strong>ds of sound), but this is morethan enough to dem<strong>on</strong>strate the behavior of an actual sound wave.3.1 Piecewise Linear ResultsOur first low sample rate returned very inaccurate interpolati<strong>on</strong> resultsusing this method. As the <strong>on</strong>ly end points for our lines were the extrema <str<strong>on</strong>g>and</str<strong>on</strong>g>zeros of our functi<strong>on</strong>, this gave a very inaccurate interpolati<strong>on</strong> of the data, asseen in the diagram <strong>on</strong> the next page. The distances between the interpolants<str<strong>on</strong>g>and</str<strong>on</strong>g> the actual sound wave might not seem like much at first glance, but when