You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: X16 Reference - 09 - VERA Programmer's Reference.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -942,7 +942,7 @@ Thus the output frequency can be set in steps of about 0.373 Hz.
942
942
*Example: to output a frequency of 440Hz (note A4) the **Frequency word** should be set to 440 / (48828.125 / (2^17)) = 1181*
943
943
944
944
**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
946
946
should be output.
947
947
948
948
**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
959
959
give a 50% duty cycle or square wave, 0 will give a very narrow pulse.
960
960
961
961
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.
963
963
It can be used to provide an NES-like fuzzy triangle as well as an overdriven saw sound
964
964
(similar to the VRC6 NES chip) among several other varieties of sounds.
965
965
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.
968
967
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.
971
971
972
972
**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
973
973
the noise shape.
@@ -993,7 +993,7 @@ For PCM playback, VERA contains a 4kB FIFO buffer. This buffer needs to be fille
993
993
994
994
**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.
995
995
996
-
#### `AUDIO_RATE ($9F3C)` ####
996
+
#####`AUDIO_RATE ($9F3C)`#####
997
997
998
998
**PCM sample rate** controls the speed at which samples are read from the FIFO. A few example values:
999
999
@@ -1007,7 +1007,7 @@ For PCM playback, VERA contains a 4kB FIFO buffer. This buffer needs to be fille
1007
1007
1008
1008
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).
1009
1009
1010
-
#### `AUDIO_DATA ($9F3D)` ####
1010
+
#####`AUDIO_DATA ($9F3D)`#####
1011
1011
1012
1012
**Audio FIFO data** Writes to this register add one byte to the PCM FIFO. If the FIFO is full, the write will be ignored.
0 commit comments