So what could the max size of a file be without losing any detail with [tabread4~]? Is that the hardcoded 4000000 elements limitation?
D.
On 11/25/10 1:52 PM, Mathieu Bouchard wrote:
On Tue, 23 Nov 2010, Derek Holzer wrote:
And keep in mind that sound quality goes down as file size goes up. This is because of the interpolation. You might do better cutting your file up and putting it into several different arrays.
If you play at normal speed with [tabread~] (not 4), you hit that problem anyway at index 16777216, and it's not because of any interpolation.
However, if you do use [tabread4~] with fractional floats, you hit the problem at much lower indices, because fractions disappear gradually first, then odd numbers disappear, etc.
Overall, it's because for a float, the numerator has to be between 8388608 and 16777215, while the denominator (or the multiplier) is a power of two... so each time you cross a new power of two, you lose half of the details, as the tiniest steps double in size.