James Tunnell
James Tunnell
If an exception occurs while writing, before Writer#close is called, I think a wave file would then be left in a non-usable state since the RIFF header wouldn't have been...
I added support for append mode over at my fork: https://github.com/jamestunnell/wavefile Included in the changes, I added a 'total_sample_frames' method like you suggested. Though now that I think about it,...
Yeah, I see your points and I agree.
I agree that some kind of resampling behaviour would be desirable. But I don't think it needs to be tied up in the Reader class. It could be provided by...
That does look like a good library, and I bet the code could be ported to Ruby without too much trouble. Unfortunately, the license is GPL, which is rather restrictive...
This paper looks pretty promising: "THE QUEST FOR THE PERFECT RESAMPLER" by Laurent de Soras http://ldesoras.free.fr/doc/articles/resampler-en.pdf
Actually, this one looks even better: "Polynomial Interpolators for High-Quality Resampling of Oversampled Audio" by Olli Niemitalo http://www.student.oulu.fi/~oniemita/dsp/deip.pdf The paper discusses a hybrid solution of first oversampling audio with discrete...
I added resampling functions to my all-ruby signal processing library, spcore (see https://github.com/jamestunnell/spcore). With a little bit of application logic you could add a resampling feature without too much trouble.