I've just added this class I found on stack overflow which should allow
me to write to WAV which for some reason appears to be next to
impossible to do.
I've now finished for the day, a frustrating but enlightening day,
though I have nothing to show for my work, I've discovered innumerable
bugs, the removal of which should hopefully help but we'll see.