public class ExternalFilter extends Object
The STC networks are connected with a BJT supposedly meant to act as a unity gain buffer, which is not really how it works. A more elaborate model would include the BJT, however DC circuit analysis yields BJT base-emitter and emitter-base impedances sufficiently low to produce additional low-pass and high-pass 3dB-frequencies in the order of hundreds of kHz. This calls for a sampling frequency of several MHz, which is far too high for practical use.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled
Filter enabled.
|
protected int |
mixer_DC
Maximum mixer DC offset.
|
protected int |
vhp
State of filters. highpass
|
protected int |
vlp
State of filters. lowpass
|
protected int |
vo
State of filters.
|
protected int |
w0hp
Cutoff frequencies.
|
protected int |
w0lp
Cutoff frequencies.
|
| Constructor and Description |
|---|
ExternalFilter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clock(int Vi)
SID clocking - 1 cycle.
|
void |
clock(int delta_t,
int Vi)
SID clocking - delta_t cycles.
|
void |
enable_filter(boolean enable)
Enable filter.
|
int |
output()
Audio output (20 bits).
|
void |
reset()
SID reset.
|
void |
set_chip_model(ISIDDefs.chip_model model)
Set chip model.
|
void |
set_sampling_parameter(double pass_freq)
Setup of the external filter sampling parameters.
|
protected boolean enabled
protected int mixer_DC
protected int vlp
protected int vhp
protected int vo
protected int w0lp
protected int w0hp
public void clock(int Vi)
Vi - public void clock(int delta_t,
int Vi)
delta_t - Vi - public int output()
public void enable_filter(boolean enable)
enable - enable filterpublic void set_sampling_parameter(double pass_freq)
pass_freq - public void set_chip_model(ISIDDefs.chip_model model)
model - chip modelpublic void reset()
Copyright © 2014. All rights reserved.