[PD-cvs] externals/tb/chaos/src chaos_dsp.hpp,1.10,1.11
Tim Blechmann
timblech at users.sourceforge.net
Sun Oct 9 11:55:27 CEST 2005
Update of /cvsroot/pure-data/externals/tb/chaos/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8526
Modified Files:
chaos_dsp.hpp
Log Message:
more flext-like dsp callbacks
Index: chaos_dsp.hpp
===================================================================
RCS file: /cvsroot/pure-data/externals/tb/chaos/src/chaos_dsp.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** chaos_dsp.hpp 16 Jun 2005 13:02:01 -0000 1.10
--- chaos_dsp.hpp 9 Oct 2005 09:55:24 -0000 1.11
***************
*** 40,52 ****
void m_signal_c(int n, t_sample *const *insigs,t_sample *const *outsigs);
! virtual void m_signal(int n, t_sample *const *insigs,t_sample *const *outsigs)
{
! (this->*m_routine)(n,insigs,outsigs);
}
! virtual void m_dsp(int n, t_sample *const *insigs,t_sample *const *outsigs)
{
m_sr = Samplerate();
set_freq(m_freq); /* maybe we have to change the interpolation mode */
}
--- 40,53 ----
void m_signal_c(int n, t_sample *const *insigs,t_sample *const *outsigs);
! virtual void CbSignal()
{
! (this->*m_routine)(Blocksize(),InSig(),OutSig());
}
! virtual bool CbDsp()
{
m_sr = Samplerate();
set_freq(m_freq); /* maybe we have to change the interpolation mode */
+ return true;
}
***************
*** 131,135 ****
f = -f;
! if( f <= m_sr * 0.5 )
{
if (m_freq >= m_sr * 0.5)
--- 132,136 ----
f = -f;
! if( f <= m_sr * 0.1 )
{
if (m_freq >= m_sr * 0.5)
***************
*** 138,142 ****
m_invfreq = 1.f / f;
}
! else if (f > m_sr * 0.5)
{
m_freq = f;
--- 139,143 ----
m_invfreq = 1.f / f;
}
! else if (f > m_sr * 0.1)
{
m_freq = f;
More information about the Pd-cvs
mailing list