Plaquette
 
Loading...
Searching...
No Matches
pq::Smoothable Class Referenceabstract

Superclass for components that can be smoothed. More...

#include <PqInputs.h>

Inheritance diagram for pq::Smoothable:
Collaboration diagram for pq::Smoothable:

Public Member Functions

virtual void smooth (float smoothTime=PLAQUETTE_DEFAULT_SMOOTH_WINDOW)
 Apply smoothing to object.
 
virtual void noSmooth ()
 Remove smoothing.
 
virtual void timeWindow (float seconds)
 Changes the smoothing window (expressed in seconds).
 
float timeWindow () const
 Returns the smoothing window (expressed in seconds).
 
virtual void cutoff (float hz)
 Changes the smoothing window cutoff frequency (expressed in Hz).
 
float cutoff () const
 Returns the smoothing window cutoff frequency (expressed in Hz).
 

Protected Member Functions

virtual float _read ()=0
 
virtual float _sampleRate () const =0
 
virtual void _begin ()
 
virtual void _step ()
 
virtual float _smoothed ()
 

Protected Attributes

MovingAverage _avg
 

Detailed Description

Superclass for components that can be smoothed.


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