aboutsummaryrefslogtreecommitdiff
path: root/sound/README.md
blob: 7ff758006cb39ee0c8a808a124dee98b42acbcec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
These examples showcase how to produce sound on the NES/Famicom. This is a
complex topic, but here I'm trying to showcase it at a very fundamental
level. It's basically the same as to follow the guide from
[NerdyNights](https://nerdy-nights.nes.science/#audio_tutorial-0), which I read
extensively, mixing with things I learned by browsing the NESDev wiki. All in
all we have:

- [beep.s](./beep.s): the most basic example. It constantly sends a C# note to
  the square 1 channel (mind that square channels are also called "pulse"
  channels).
- [select.s](./select.s): same as `beep.s` but while also using the square 2,
  triangle and noise channels. Note that now everything is muted, and you can
  unmute each channel by pressing A, B, Start or Select.
- [scale.s](./scale.s): reproduce a scale of notes over and over.