Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • sw
  • bbplayer
  • tools
  • audio
  • reverb
  • lowpass.c
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
lowpass.c 337 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/***************************************************************
 *
 *	lowpass.c
 *	 the DC normalized low-pass function
 *
 *	1/3/95		bfs initial version
 *
 */

#include "lowpass.h"

float
low_pass_filter(struct lp_info* lp)
{
    lp->out_data = lp->in_data * (1.0 - lp->coef)
	+ lp->out_data * lp->coef;

    return lp->out_data;
}