public abstract class Filter extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
bp
Highpass, bandpass, and lowpass filter modes.
|
protected double |
clockFrequency
Current clock frequency.
|
protected int |
fc
Filter cutoff frequency.
|
protected boolean |
filt1
Routing to filter or outside filter
|
protected boolean |
filt2
Routing to filter or outside filter
|
protected boolean |
filt3
Routing to filter or outside filter
|
protected boolean |
filtE
Routing to filter or outside filter
|
protected boolean |
hp
Highpass, bandpass, and lowpass filter modes.
|
protected boolean |
lp
Highpass, bandpass, and lowpass filter modes.
|
protected int |
res
Filter resonance.
|
protected boolean |
voice3off
Switch voice 3 off.
|
protected int |
vol
Current volume.
|
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
clock(int v1,
int v2,
int v3)
SID clocking - 1 cycle
|
void |
enable(boolean enable)
Enable filter.
|
protected abstract void |
input(int input) |
protected void |
reset()
SID reset.
|
protected void |
setClockFrequency(double clock) |
protected abstract void |
updatedCenterFrequency()
Set filter cutoff frequency.
|
protected abstract void |
updatedMixing()
Mixing configuration modified (offsets change)
|
protected abstract void |
updatedResonance()
Set filter resonance.
|
protected void |
writeFC_HI(byte fc_hi)
Register function.
|
protected void |
writeFC_LO(byte fc_lo)
Register function.
|
protected void |
writeMODE_VOL(byte mode_vol)
Register function.
|
protected void |
writeRES_FILT(byte res_filt)
Register function.
|
protected abstract void |
zeroDenormals() |
protected int fc
protected int res
protected boolean filt1
protected boolean filt2
protected boolean filt3
protected boolean filtE
protected boolean voice3off
protected boolean hp
protected boolean bp
protected boolean lp
protected int vol
protected double clockFrequency
protected abstract int clock(int v1, int v2, int v3)
v1
- voice 1 inv2
- voice 2 inv3
- voice 3 inpublic void enable(boolean enable)
enable
- Enable/Disable the filter.protected void setClockFrequency(double clock)
protected final void reset()
protected final void writeFC_LO(byte fc_lo)
fc_lo
- protected final void writeFC_HI(byte fc_hi)
fc_hi
- protected final void writeRES_FILT(byte res_filt)
res_filt
- protected final void writeMODE_VOL(byte mode_vol)
mode_vol
- protected abstract void zeroDenormals()
protected abstract void updatedCenterFrequency()
protected abstract void updatedResonance()
protected abstract void updatedMixing()
protected abstract void input(int input)
Copyright © 2018 Ken Händel. All rights reserved.