<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 31/01/2020 17:09, Jeppi Jeppi wrote:<br>
</div>
<blockquote type="cite" cite="mid:VI1PR08MB3886D96B4FBE239809B13607B2070@VI1PR08MB3886.eurprd08.prod.outlook.com">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
 I noticed <span style="caret-color: rgb(0, 0, 0); font-family: Calibri,
          Helvetica, sans-serif; background-color: rgb(255, 255, 255);
          display: inline !important">
nasty clicks occur </span>when indexing arrays <span style="caret-color: rgb(0, 0, 0); font-family: Calibri,
          Helvetica, sans-serif; background-color: rgb(255, 255, 255);
          display: inline !important">
larger than 16384 samples</span> with tabread4~. I attach a demo file, notice I index the array with a cosine therefore no discontinuities are expected, yet beyond that size I get regular clicks.</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
What is the cause and how could it be overcome?</div>
</blockquote>
<p><br>
</p>
<p>Dear Josep</p>
<p><br>
</p>
<p>Check the size of your table. It is 16,387 points, I believe — i.e. 16,384 (a power of two) plus 3 guard points (1 at the beginning, 2 at the end). 20,000 isn’t a power of two, so sinesum looks for the largest power of two less than 20,000 (i.e. 16,384),
 and you end up trying to scan past the end of the table.<br>
</p>
<p><br>
</p>
<p>If you give sinesum a power of two to chew on (it will add the guard points itself) and only scan the table less the guard points, you should be OK. I tested this with a table of 65,536 (+ 3) points, and it was fine.</p>
<p><br>
</p>
<p>I *think* that answer is error free. I hope it is helpful.</p>
<p><br>
</p>
<p>Best</p>
<p><br>
</p>
<p>m<br>
</p>
<pre class="moz-signature" cols="85">-- 
matthew brandi</pre>
</body>
</html>