Skip to content

Conversation

@m00dawg
Copy link
Collaborator

@m00dawg m00dawg commented Aug 12, 2024

No description provided.

Copy link
Contributor

@Frosty-J Frosty-J left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, this ought to document it. Some thoughts...

For PCM playback, VERA contains a 4kB FIFO buffer. This buffer needs to be filled in a timely fashion by the CPU. To facilitate this an **AFLOW** (Audio FIFO low) interrupt can be generated when the FIFO is less than 1/4 filled.

### Audio registers
#### Audio registers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heading hierarchy seems a bit off. If "Audio registers" is made h4, the respective register headings should be h5, and "Audio data formats" also h4 (since they also relate to PCM).

That does feel like some very deep nesting into the hierarchy, but I think that's a symptom of most of the VERA stuff being on the one page, an issue for another day.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you haven't changed this sentence but the first "output" (line 925) seems redundant.

give a 50% duty cycle or square wave, 0 will give a very narrow pulse.

When the triangle or saw waveform is selected, the value influences an XOR calculation
the changes the resulting waveform. This is most noticeable with the triangle waveform.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smells like a typo, possibly intended as "an XOR calculation that changes"?

It can be used to provide an NES-like fuzzy triangle as well as an overdriven saw sound
(similar to the VRC6 NES chip) among several other varieties of sounds.

When used with the saw, the result is more substle. It adds some overtones to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

substle?

@mooinglemur
Copy link
Contributor

Since I want to close this PR out, I tried to remedy these changes, but the PR was not opened to allow edits back into the source branch. I'm going to merge these then apply the fixes in the next PR

@mooinglemur mooinglemur merged commit 0b43cba into X16Community:master Sep 6, 2024
mooinglemur added a commit to mooinglemur/x16-docs that referenced this pull request Sep 6, 2024
mooinglemur added a commit that referenced this pull request Sep 6, 2024
@mooinglemur
Copy link
Contributor

Changes applied in #218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants