From b5e8ffd7605b53f368c81ddae06dd997f57a4ca3 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sat, 7 Jan 2006 20:48:29 +0000 Subject: fixed bug svn path=/trunk/externals/tb/; revision=4378 --- chaos/src/chaos_dsp.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chaos/src/chaos_dsp.hpp b/chaos/src/chaos_dsp.hpp index e86fc30..786bee3 100644 --- a/chaos/src/chaos_dsp.hpp +++ b/chaos/src/chaos_dsp.hpp @@ -372,16 +372,16 @@ void chaos_dsp::m_signal_l_hf(int n, t_sample *const *insigs, { int outlets = m_system->get_num_eq(); - float phase = int(m_phase); + float phase = m_phase; int i = 0; while (n) { - if (phase == 0) + if (phase <= 0) { m_system->m_perform(); - phase = int (m_sr * m_invfreq); + phase = m_sr * m_invfreq; for (int j = 0; j != outlets; ++j) m_slopes[j] = (m_system->get_data(j) - m_values[j]) / phase; -- cgit v1.2.1