nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Filter Class Reference

#include <synth.h>

Classes

struct  Out

Public Member Functions

Out Run (float in, float hertz, float q=0.7f)

Detailed Description

A filter that passes what's below a frequency, around it, or above it, all three at once, from two running sums of what came through. The frequency can change from one sample to the next, so that a sound can sweep.

Definition at line 38 of file synth.h.

Member Function Documentation

◆ Run()

Filter::Out nanommo::Filter::Run ( float in,
float hertz,
float q = 0.7f )

One sample through. The higher the q, the narrower the band, and the longer it rings.

Definition at line 32 of file synth.cc.


The documentation for this class was generated from the following files: