public final class WaveformGenerator extends Object
Modifier | Constructor and Description |
---|---|
protected |
WaveformGenerator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clock()
SID clocking - 1 cycle.
|
float |
getZeroLevel()
Return the waveform offset.
|
float |
output(WaveformGenerator ring_modulator)
12-bit waveform output.
|
byte |
readOSC(ChipModel model) |
protected byte |
readOSC6581(WaveformGenerator ring_modulator)
Read OSC3 value (6581, not latched/delayed version)
|
protected byte |
readOSC8580(WaveformGenerator ring_modulator)
Read OSC3 value (8580, 1-clock latched version).
|
protected void |
reset()
SID reset.
|
protected void |
setWftable(float[][] newWftable,
float[] newDac,
byte[][] newWfdigital) |
protected void |
synchronize(WaveformGenerator syncDest,
WaveformGenerator syncSource)
Synchronize oscillators.
|
protected void |
writeCONTROL_REG(WaveformGenerator ring_modulator,
byte control)
Register functions.
|
protected void |
writeFREQ_HI(byte freq_hi)
Register functions.
|
protected void |
writeFREQ_LO(byte freq_lo)
Register functions.
|
protected void |
writePW_HI(byte pw_hi)
Register functions.
|
protected void |
writePW_LO(byte pw_lo)
Register functions.
|
protected void setWftable(float[][] newWftable, float[] newDac, byte[][] newWfdigital)
protected void clock()
protected final void synchronize(WaveformGenerator syncDest, WaveformGenerator syncSource)
syncDest
- The oscillator I am syncingsyncSource
- The oscillator syncing me.public float output(WaveformGenerator ring_modulator)
ring_modulator
- The oscillator ring-modulating me.protected void writeFREQ_LO(byte freq_lo)
freq_lo
- low 8 bits of frequencyprotected void writeFREQ_HI(byte freq_hi)
freq_hi
- high 8 bits of frequencyprotected void writePW_LO(byte pw_lo)
pw_lo
- low 8 bits of pulse widthprotected void writePW_HI(byte pw_hi)
pw_hi
- high 8 bits of pulse widthprotected void writeCONTROL_REG(WaveformGenerator ring_modulator, byte control)
ring_modulator
- ring-modulator modulating me.control
- control register valueprotected byte readOSC6581(WaveformGenerator ring_modulator)
ring_modulator
- The ring modulating partner of this waveformprotected byte readOSC8580(WaveformGenerator ring_modulator)
ring_modulator
- The ring modulating partner of this waveformpublic byte readOSC(ChipModel model)
protected void reset()
public float getZeroLevel()
Copyright © 2018 Ken Händel. All rights reserved.