44
where k is a constant
This affects the output from the SN76489 both internally (for the outputs from the wave
generators to the mixer) and externally (for the output of the mixer).
If the tone register value is large enough, they will decay close to zero.
If the tone register value is zero, the constant offset output will just decay to zero.
However, whenever the volume of the output is changed, the constant offset is restored.
This allows speech effects.
Playing samples on the PSG
This is for the reference of those wishing to put sample playback in their demos, and for
those whose sound core doesn't do voices. Emulator authors may wish to add
implementation suggestions.
Sample playback is possible on the PSG (SN76489) but not the YM2413 FM chip.
It is possible to play samples in two ways:
Pulse Code Modulation
This is the usual way to store, process and output waves. The data is in the form of
voltages (corresponding to the desired speaker position which in turn gives
corresponding pressure waves in the air) which are stored digitally, often as 16-bit or 8-
bit signed numbers.
On the SN76489, this is *usually* done by:
Setting all 3 tone channels to frequency 0x000
At rapid, closely timed intervals, setting the output volume of all 3 to values stored in
ROM.
In other words, the volume setting is used as a 4-bit DAC. All three tone channels are
usually used together to get maximum volume.
The problem is that the output levels of the SN76489 are not linearly scaled:
Содержание Franky
Страница 1: ...Instruction Manual ...