aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/source/OnePole.cpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-08-07 20:45:34 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:56 +0200
commit13803d97db1f5f234cb2358d255b86571f93cdb9 (patch)
tree628fd057c302d8f0e6a174570dbc11197efd1679 /sc4pd/source/OnePole.cpp
parent1c90c506bb91c8ba80390d81a168e7425190e2bb (diff)
*** empty log message ***
svn path=/trunk/externals/tb/; revision=1914
Diffstat (limited to 'sc4pd/source/OnePole.cpp')
-rw-r--r--sc4pd/source/OnePole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc4pd/source/OnePole.cpp b/sc4pd/source/OnePole.cpp
index 310bf54..3de6ef4 100644
--- a/sc4pd/source/OnePole.cpp
+++ b/sc4pd/source/OnePole.cpp
@@ -31,7 +31,7 @@
SuperCollider by James McCartney
http://www.audiosynth.com
- Coded while listening to:
+ Coded while listening to: Goh Lee Kwang: Internal Pleasures
*/
@@ -240,6 +240,6 @@ OnePole_kr::OnePole_kr(int argc, t_atom *argv)
void OnePole_kr::m_perform(float f)
{
- m_y1= f + m_b1 * (m_y1 - f);
+ m_y1= ((1-abs(m_b1))*f)+m_b1*m_y1;
ToOutFloat(0,m_y1);
}