Re: just one thing bothering me ..
Posted: Sat Nov 25, 2017 7:33 pm
When you compute the slopes, make sure you get the ends of each waveform right.
Yes I thought of that too .. I need a 'wrap around' to the first sample from every last sample. My - you're sharp, Martin!
Interestingly I've so far ignored this issue in my current version; turns out the error is inaudible on every note exept no. 73. (Which being well beyond the keyboard may well be never needed anyway). Evidently the difference is normally very small, except on the top note where sample+1 is beyond the end of the array and so is being interpolated with 'garbage', so no surprise.
But I delight in 'tidying up' .. (OCD I expect
According to Wikipedia there is a <fmt-ck> format chunk in the file header
I've made a start with just that, but as you say no CPU loss simply copying Exonerate/Infuzion's Stereo Wave maker module, since it's green. I just fancied getting to the bottom of it!
I had the idea of hacking the header from the wav file that their module creates from my waves and pasting it in at the start, since it ought to be exactly the same as the one I need. (i.e. all the bytes that start with 'RIFF' and ends with 'data', inclusive). Couldn't make it work yesterday evening but I'll maybe persevere for a while.
Thanks again.