libsidplayfp
1.5.3
|
#include <Filter6581.h>
Public Member Functions | |
int | clock (int voice1, int voice2, int voice3) |
void | input (int sample) |
void | updatedCenterFrequency () |
void | updatedResonance () |
void | updatedMixing () |
void | setFilterCurve (double curvePosition) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
double | clockFrequency |
Current clock frequency. | |
unsigned int | fc |
Filter cutoff frequency. | |
unsigned char | res |
Filter resonance. | |
unsigned char | vol |
Current volume. | |
bool | filt1 |
Routing to filter or outside filter. | |
bool | filt2 |
bool | filt3 |
bool | filtE |
bool | voice3off |
Switch voice 3 off. | |
bool | hp |
Highpass, bandpass, and lowpass filter modes. | |
bool | bp |
bool | lp |
Filter based on Dag Lem's 6581 filter from reSID 1.0 prerelease. See original source for discussion about theory of operation.
|
virtual |
SID clocking - 1 cycle
v1 | voice 1 in |
v2 | voice 2 in |
v3 | voice 3 in |
Implements reSIDfp::Filter.
void reSIDfp::Filter6581::setFilterCurve | ( | double | curvePosition | ) |
Set filter curve type based on single parameter.
curvePosition | 0 .. 1, where 0 sets center frequency high ("light") and 1 sets it low ("dark"), default is 0.5 |
|
virtual |
Set filter cutoff frequency.
Implements reSIDfp::Filter.
|
virtual |
Mixing configuration modified (offsets change)
Implements reSIDfp::Filter.
|
inlinevirtual |
Set filter resonance.
In the MOS 6581, 1/Q is controlled linearly by res.
Implements reSIDfp::Filter.