Public Member Functions |
array< short > * | buildTable (const ChipModel model) |
Member Function Documentation
array< short > * reSIDfp::WaveformCalculator::buildTable |
( |
const ChipModel |
model | ) |
|
Build waveform tables for use by WaveformGenerator. The method returns 3 tables in an Object[] wrapper:
- short[8][4096] wftable: the analog values in the waveform table
- float[12] dac table for values of the nonlinear bits used in waveforms.
- byte[11][4096] wfdigital: the digital values in the waveform table.
The wf* tables are structured as follows: indices 0 .. 6 correspond to SID waveforms of 1 to 7 with pulse width value set to 0x1000 (never triggered). Indices 7 .. 10 correspond to the pulse waveforms with width set to 0x000 (always triggered).
- Parameters
-
model | Chip model to use |
nonlinearity | Nonlinearity factor for 6581 tables, 1.0 for 8580 |
- Returns
- Table suite
The documentation for this class was generated from the following files: