nagen v1

This is first public release of my online NES Audio Generator (nagen), supplementary tool for my educational videos.

You can use this rather low level tool to generate wav files from NES audio description. Go ahead and try it here: nagen v1

 How to generate audio file

  1. Enter file name, such as "noise"
  2. Enter sound description (example is below)
  3. Click on "Generate wav file" button. 

Example of audio description:

size 30

frame 0
 400c 1 1 0xA
 400e = 0xFA
 400f = 34

 At this point nagen page should look like this:


What to do with generated audio

  • Click on file name (such as "noise.wav") to play it
  • Click on download button (arrow pointing down) to download it

 Audio description

  • To set audio length in frames use size keyword (1 frame is 1/60 of second, hence 30 frames is half a second, 60 is one second), maximum is 10800 frames (3 minutes)
  • To set frame number use frame keyword, then...
  • ... write to NES registers using one of the following options:
    • register_number part1 ... partN
    • register_number = value
The example above generates 30 frames long audio file ("size 30 "). It only writes to register at 1st frame ("frame 0"). Look at this page - noise registers are 400C, 400E and 400F. Register 400C consists of three parts:
  • Envelope loop / length counter halt (L, 1 bit)
  • Constant volume (C, 1 bit)
  • Volume/envelope (V, 4 bits)
400c 1 1 0xA command sets up register value by setting L, C and V parts as 1, 1 and 0xA correspondingly. The last two command set up register values for registers 400E and 400F correspondingly as bytes with value 0xFA and 34. As you see, any number can be entered in decimal or hexadecimal form.

Comments