Skip to content

Commit 8251f78

Browse files
authored
Changes meant for PR #213 (#218)
1 parent 0b43cba commit 8251f78

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

X16 Reference - 09 - VERA Programmer's Reference.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ Thus the output frequency can be set in steps of about 0.373 Hz.
942942
*Example: to output a frequency of 440Hz (note A4) the **Frequency word** should be set to 440 / (48828.125 / (2^17)) = 1181*
943943

944944
**Volume** controls the volume of the sound with a logarithmic curve; 0 is silent, 63 ($3F)
945-
is the loudest. The **Left** and **Right** bits control to which output channels the sound
945+
is the loudest. The **Left** and **Right** bits control to which channels the sound
946946
should be output.
947947

948948
**Waveform** controls the waveform of the sound:
@@ -959,15 +959,15 @@ permutation when used with the triangle or saw. For pulse, a value of 63 ($3F) w
959959
give a 50% duty cycle or square wave, 0 will give a very narrow pulse.
960960

961961
When the triangle or saw waveform is selected, the value influences an XOR calculation
962-
the changes the resulting waveform. This is most noticeable with the triangle waveform.
962+
that changes the resulting waveform. This is most noticeable with the triangle waveform.
963963
It can be used to provide an NES-like fuzzy triangle as well as an overdriven saw sound
964964
(similar to the VRC6 NES chip) among several other varieties of sounds.
965965

966-
When used with the saw, the result is more substle. It adds some overtones to
967-
the saw.
966+
When used with the saw, the result is more subtle. It adds some overtones to the saw.
968967

969-
Setting the PW/XOR to 00 for Tri/Saw inverts the waveform from what it was prior
970-
to the addition of the XOR feature. Be careful of phasing as a result.
968+
Setting the PW/XOR to 0 for Tri/Saw inverts the waveform from what it was prior
969+
to the addition of the XOR feature, and PW of 63 results in the original waveform.
970+
Be aware of phasing effects that this difference could cause.
971971

972972
**Noise** Just like the other waveform types, the frequency of the noise waveform can be controlled using frequency. In this case a higher frequency will give brighter noise and a lower value will give darker noise. The PWM/XOR values do not influence
973973
the noise shape.
@@ -993,7 +993,7 @@ For PCM playback, VERA contains a 4kB FIFO buffer. This buffer needs to be fille
993993

994994
**PCM Volume** (bits 0..3)controls the volume of the PCM playback, this has a logarithmic curve. A value of 0 is silence, 15 is the loudest.
995995

996-
#### `AUDIO_RATE ($9F3C)` ####
996+
##### `AUDIO_RATE ($9F3C)` #####
997997

998998
**PCM sample rate** controls the speed at which samples are read from the FIFO. A few example values:
999999

@@ -1007,7 +1007,7 @@ For PCM playback, VERA contains a 4kB FIFO buffer. This buffer needs to be fille
10071007

10081008
Using a value of 128 will give the best quality (lowest distortion); at this value for every output sample, an input sample from the FIFO is read. Lower values will output the same sample multiple times to the audio DAC. Input samples are always read as a complete set (being 1/2/4 bytes).
10091009

1010-
#### `AUDIO_DATA ($9F3D)` ####
1010+
##### `AUDIO_DATA ($9F3D)` #####
10111011

10121012
**Audio FIFO data** Writes to this register add one byte to the PCM FIFO. If the FIFO is full, the write will be ignored.
10131013

0 commit comments

Comments
 (0)