[PD-dev] flext & fiiwu~

Thomas Grill t.grill at gmx.net
Tue Oct 22 14:00:41 CEST 2002


> > However, it also says (upon loading):
> >
> > WARNING: Current samplerate 0 != 44100
> > WARNING: fiiwu~ might be out of tune!
> >
> > which is strange because I always run pd @ 44100.

Hi Frank,
the Samplerate() method relies on a pd function that should reflect the
sample rate given on the pd command line.
It's really strange that it doesn't give a meaningful sample rate - i
haven't had such a situation yet.
However, it's possibly more secure (or just another possibility) to grab the
sample rate at initialization of the DSP chain.
This is possible by overriding the flext_dsp::m_dsp virtual method, which
freshly queries the sample rate out of the signal vector structure - it is
called on every dsp chain rebuild. It has the same parameters as
flext_dsp::m_signal.

best greetings,
Thomas







More information about the Pd-dev mailing list