| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Sound: Resample...</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Sound: Resample... |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command that creates new <a href="Sound.html">Sound</a> objects from the selected Sounds.</p> |
| 15 |
<h2>Purpose</h2> |
| 16 |
<p>High-precision resampling from any sampling frequency to any other sampling frequency.</p> |
| 17 |
<h2>Settings</h2> |
| 18 |
<dl> |
| 19 |
<dt><b>Sampling frequency (Hz)</b> |
| 20 |
<dd>the new sampling frequency, in hertz.</dd> |
| 21 |
<dt><b>Precision</b> |
| 22 |
<dd>the depth of the interpolation, in samples (standard is 50). This determines the quality of the interpolation used in resampling.</dd> |
| 23 |
</dl> |
| 24 |
<h2>Algorithm</h2> |
| 25 |
<p>If <b>Precision</b> is 1, the method is linear interpolation, which is inaccurate but fast.</p> |
| 26 |
<p>If <b>Precision</b> is greater than 1, the method is sin(<i>x</i>)/<i>x</i> (“<i>sinc</i>”) interpolation, with a depth equal to <b>Precision</b>. For higher <b>Precision</b>, the algorithm is slower but more accurate.</p> |
| 27 |
<p>If <b>Sampling frequency</b> is less than the sampling frequency of the selected sound, an anti-aliasing low-pass filtering is performed prior to resampling.</p> |
| 28 |
<h2>Behaviour</h2> |
| 29 |
<p>A new Sound will appear in the list of objects, bearing the same name as the original Sound, followed by the sampling frequency. For instance, the Sound <code><font size=+1>hallo</font></code> will give a new Sound <code><font size=+1>hallo_10000</font></code>.</p> |
| 30 |
<h3>Links to this page</h3> |
| 31 |
<ul> |
| 32 |
<li><a href="Sound__To_Formant__burg____.html">Sound: To Formant (burg)...</a> |
| 33 |
<li><a href="Sound__To_LPC__autocorrelation____.html">Sound: To LPC (autocorrelation)...</a> |
| 34 |
<li><a href="Sound__To_LPC__burg____.html">Sound: To LPC (burg)...</a> |
| 35 |
<li><a href="Sound__To_LPC__covariance____.html">Sound: To LPC (covariance)...</a> |
| 36 |
<li><a href="Sound__To_LPC__marple____.html">Sound: To LPC (marple)...</a> |
| 37 |
<li><a href="Sound__To_PowerCepstrogram___.html">Sound: To PowerCepstrogram...</a> |
| 38 |
<li><a href="Source-filter_synthesis_4__Using_existing_sounds.html">Source-filter synthesis 4. Using existing sounds</a> |
| 39 |
</ul> |
| 40 |
<hr> |
| 41 |
<address> |
| 42 |
<p>© Paul Boersma 2004-03-30</p> |
| 43 |
</address> |
| 44 |
</body> |
| 45 |
</html> |