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: src/Audio_Registers.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,11 +181,11 @@ The pulse channels' period dividers are clocked at 1048576 Hz, once per four dot
181
181
This makes their sample rate equal to <math><mfrac><mn>1048576</mn><mrow><mn>2048</mn><mo>-</mo><mi>period_value</mi></mrow></mfrac></math> Hz.
182
182
with a resulting tone frequency equal to <math><mfrac><mn>131072</mn><mrow><mn>2048</mn><mo>-</mo><mi>period_value</mi></mrow></mfrac></math> Hz.
183
183
184
-
- Period value $500 means -$300, or 1 sample per 768 input cycles
185
-
or (1048576 ÷ 768) = 1365.3 Hz sample rate
184
+
- Period value $500 means -$300, or 1 sample per 768 input cycles
185
+
or (1048576 ÷ 768) = 1365.3 Hz sample rate
186
186
or (1048576 ÷ 768 ÷ 8) = 170.67 Hz tone frequency
187
-
- Period value $740 means -$C0, or 1 sample per 192 input cycles
188
-
or (1048576 ÷ 192) = 5461.3 Hz sample rate
187
+
- Period value $740 means -$C0, or 1 sample per 192 input cycles
188
+
or (1048576 ÷ 192) = 5461.3 Hz sample rate
189
189
or (1048576 ÷ 192 ÷ 8) = 682.67 Hz tone frequency
190
190
191
191
Period value $740 produces a higher frequency than $500.
@@ -283,11 +283,11 @@ The wave channel's period divider is clocked at 2097152 Hz, once per two dots, a
283
283
This makes their sample rate equal to <math><mfrac><mn>2097152</mn><mrow><mn>2048</mn><mo>-</mo><mi>period_value</mi></mrow></mfrac></math> Hz.
284
284
with a resulting tone frequency equal to <math><mfrac><mn>65536</mn><mrow><mn>2048</mn><mo>-</mo><mi>period_value</mi></mrow></mfrac></math> Hz.
285
285
286
-
- Period value $500 means -$300, or 1 sample per 768 input cycles
287
-
or (2097152 ÷ 768) = 2730.7 Hz sample rate
286
+
- Period value $500 means -$300, or 1 sample per 768 input cycles
287
+
or (2097152 ÷ 768) = 2730.7 Hz sample rate
288
288
or (2097152 ÷ 768 ÷ 32) = 85.333 Hz tone frequency
289
-
- Period value $740 means -$C0, or 1 sample per 192 input cycles
290
-
or (2097152 ÷ 192) = 10923 Hz sample rate
289
+
- Period value $740 means -$C0, or 1 sample per 192 input cycles
290
+
or (2097152 ÷ 192) = 10923 Hz sample rate
291
291
or (2097152 ÷ 192 ÷ 32) = 341.33 Hz tone frequency
292
292
293
293
Given the same period value, the tone frequency of the wave channel is generally half that of a pulse channel, or one octave lower.
@@ -313,18 +313,18 @@ Period changes (written to `NR33` or `NR34`) only take effect after the followin
313
313
* Volume is set to contents of `NR32` initial volume.
314
314
* Wave RAM index is reset, but its *not* refilled.
315
315
316
-
:::warning RETRIGGERING CAUTION
316
+
:::warning RETRIGGERING CAUTION
317
317
318
-
On monochrome consoles only, retriggering CH3 while it's about to read a byte from wave RAM causes wave RAM to be corrupted in a generally unpredictable manner.
318
+
On monochrome consoles only, retriggering CH3 while it's about to read a byte from wave RAM causes wave RAM to be corrupted in a generally unpredictable manner.
319
319
320
-
:::
320
+
:::
321
321
322
-
:::warning PLAYBACK DELAY
322
+
:::warning PLAYBACK DELAY
323
323
324
-
Triggering the wave channel does not immediately start playing wave RAM; instead, the *last* sample ever read (which is reset to 0 when the APU is off) is output until the channel next reads a sample.
Triggering the wave channel does not immediately start playing wave RAM; instead, the *last* sample ever read (which is reset to 0 when the APU is off) is output until the channel next reads a sample.
-**[Length](<#Length timer>) enable** (*Read/Write*): Takes effect immediately upon writing to this register.
330
330
-**Period** (*Write-only*): The upper 3 bits of the period value; the lower 8 bits are stored in [`NR33`](<#FF1D — NR33: Channel 3 period low \[write-only\]>).
0 commit comments