root/lang/cplusplus/dokodemo_yubipiano/filter.h
| Revision 8316, 216 bytes (checked in by mootoh, 8 months ago) |
|---|
| Line | |
|---|---|
| 1 | /* |
| 2 | * filter.h |
| 3 | * PlaySoftMIDI |
| 4 | * |
| 5 | */ |
| 6 | #include <vector> |
| 7 | |
| 8 | class MovingAverageFilter { |
| 9 | public: |
| 10 | MovingAverageFilter(int taps); |
| 11 | int filter(int sample); |
| 12 | |
| 13 | private: |
| 14 | std::vector <int> values_; |
| 15 | }; // MovingAverageFilter |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)