#include <Filter.h>
Public Member Functions | |
virtual int | clock (int v1, int v2, int v3)=0 |
void | enable (bool enable) |
void | setClockFrequency (double clock) |
void | reset () |
void | writeFC_LO (unsigned char fc_lo) |
void | writeFC_HI (unsigned char fc_hi) |
void | writeRES_FILT (unsigned char res_filt) |
void | writeMODE_VOL (unsigned char mode_vol) |
virtual void | input (int input)=0 |
Protected Member Functions | |
virtual void | updatedCenterFrequency ()=0 |
virtual void | updatedResonance ()=0 |
virtual void | updatedMixing ()=0 |
Protected Attributes | |
double | clockFrequency |
int | fc |
int | res |
int | vol |
bool | filt1 |
bool | filt2 |
bool | filt3 |
bool | filtE |
bool | voice3off |
bool | hp |
bool | bp |
bool | lp |
virtual int reSIDfp::Filter::clock | ( | int | v1, | |
int | v2, | |||
int | v3 | |||
) | [pure virtual] |
SID clocking - 1 cycle
v1 | voice 1 in | |
v2 | voice 2 in | |
v3 | voice 3 in |
Implemented in reSIDfp::Filter6581, and reSIDfp::Filter8580.
void reSIDfp::Filter::enable | ( | bool | enable | ) |
Enable filter.
enable |
void reSIDfp::Filter::reset | ( | ) |
SID reset.
virtual void reSIDfp::Filter::updatedCenterFrequency | ( | ) | [protected, pure virtual] |
Set filter cutoff frequency.
Implemented in reSIDfp::Filter6581, and reSIDfp::Filter8580.
virtual void reSIDfp::Filter::updatedMixing | ( | ) | [protected, pure virtual] |
Mixing configuration modified (offsets change)
Implemented in reSIDfp::Filter6581, and reSIDfp::Filter8580.
virtual void reSIDfp::Filter::updatedResonance | ( | ) | [protected, pure virtual] |
Set filter resonance.
Implemented in reSIDfp::Filter6581, and reSIDfp::Filter8580.
void reSIDfp::Filter::writeFC_HI | ( | unsigned char | fc_hi | ) |
Register function.
fc_hi | Frequency Cutoff High-Byte |
void reSIDfp::Filter::writeFC_LO | ( | unsigned char | fc_lo | ) |
Register function.
fc_lo | Frequency Cutoff Low-Byte |
void reSIDfp::Filter::writeMODE_VOL | ( | unsigned char | mode_vol | ) |
void reSIDfp::Filter::writeRES_FILT | ( | unsigned char | res_filt | ) |
Register function.
res_filt | Resonance/Filter |
double reSIDfp::Filter::clockFrequency [protected] |
Current clock frequency.
int reSIDfp::Filter::fc [protected] |
Filter cutoff frequency.
bool reSIDfp::Filter::filt1 [protected] |
Routing to filter or outside filter
bool reSIDfp::Filter::hp [protected] |
Highpass, bandpass, and lowpass filter modes.
int reSIDfp::Filter::res [protected] |
Filter resonance.
bool reSIDfp::Filter::voice3off [protected] |
Switch voice 3 off.
int reSIDfp::Filter::vol [protected] |
Current volume.