Maybe there is a way to improve it.stevethefiddle wrote:There is undoubtedly room for improvement, but I'm finding the curve generated by the code as is, to be difficult to improve on.
On the first pass, I would keep the threshold level high, to retain as much of the original waveform as possible. However, on subsequent passes, it could be changed so as to reconstruct a bigger or smaller amount of the wave that was constructed on the first pass. As long as it is not set too low, it will not affect the original part of the waveform.
The obvious drawback is that it could take a lot of trial and error to see what settings improve the sound (if any!), plus the fact that there is no way of knowing (I think), for a given sound, whether a higher or lower threshold would give an improvement.
"If I had used a lower value the last time and a higher one this time ..." etc., etc.
Maybe (or maybe not).
PO'L