Skip to content

Commit 6b00a8c

Browse files
Fix formatting
1 parent 8697f2f commit 6b00a8c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/Audio_Registers.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ The pulse channels' period dividers are clocked at 1048576 Hz, once per four dot
181181
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.
182182
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.
183183

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
186186
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
189189
or (1048576 ÷ 192 ÷ 8) = 682.67 Hz tone frequency
190190

191191
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
283283
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.
284284
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.
285285

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
288288
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
291291
or (2097152 ÷ 192 ÷ 32) = 341.33 Hz tone frequency
292292

293293
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
313313
* Volume is set to contents of `NR32` initial volume.
314314
* Wave RAM index is reset, but its *not* refilled.
315315

316-
:::warning RETRIGGERING CAUTION
316+
:::warning RETRIGGERING CAUTION
317317

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.
319319

320-
:::
320+
:::
321321

322-
:::warning PLAYBACK DELAY
322+
:::warning PLAYBACK DELAY
323323

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.
325-
([Source](https://github.com/LIJI32/SameSuite/blob/master/apu/channel_3/channel_3_delay.asm))
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.
325+
([Source](https://github.com/LIJI32/SameSuite/blob/master/apu/channel_3/channel_3_delay.asm))
326326

327-
:::
327+
:::
328328

329329
- **[Length](<#Length timer>) enable** (*Read/Write*): Takes effect immediately upon writing to this register.
330330
- **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

Comments
 (0)