On Thu, May 10, 2007 at 11:44:54PM +0200, Fons
Adriaensen wrote:
On Thu, May 10, 2007 at 03:58:25PM +0100, Steve
Harris wrote:
I don't support it unless someone has a
representation issue. You're
not like to see if (fs == 44100) anyway, and if you did you'd want to
hedge a bit: if (fs > 44090 && fs < 44110). If you have to write if
(fs_num / fs_denom == 44100) then things are bit dodgy anyway.
Let me state once and for all, even it will not gain me any popularity:
Anyone who thinks that writing a range check on a fraction A/B is too
difficult is very probably completely incompetent and should not waste
his/her time trying to write audio DSP code for a plugin.
Anyone who refuses to write LV2 extensions has a bad taste.
this is about aesthetics.
we all love the sound, but look:
void Ladspa_Moogvcf2::runproc (unsigned long len, bool add)
{
.... uh oh.
Can we figure out this sample rate thing before this gets really
ugly? :)
-DR-