aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2006-01-07 20:48:29 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:12:01 +0200
commitb5e8ffd7605b53f368c81ddae06dd997f57a4ca3 (patch)
tree8df9f0b4d5a32bd203ff0aee5a70a1442acaf3b9
parentf6342b53b06b3b9551d0e9752d33703ec59c1810 (diff)
fixed bug
svn path=/trunk/externals/tb/; revision=4378
-rw-r--r--chaos/src/chaos_dsp.hpp6
1 files 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<system>::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;