Create beautiful music on your NES
Thomas Hjelm wrote the sound engine code in 6052 asm that this project uses. If you want to learn how sound (or anything else) on the NES works check out the Nintendo Age Forums. Without those this wouldn't even be possible.
npm install nesly-sound
var song = require('nesly-sound')();
song.square1(['C5', 'E5', 'G5', 'C6'])
.timing(1/8);
song.done();
song.write();
Takes an Array
of notes. Notes can either be strings with the note letter and octave, or a note object created with octavian.
Noise is a little different. Right now it takes string values that directly map to the hex ASM values. For example, '$00' through '$1F' are valid values for noise notes.