3.1.0 • Published 8 years ago

nesly-sound v3.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

nesly-sound

Build Status

js-standard-style

Standard Version

Create beautiful music on your NES

Special Thanks

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.

Install

npm install nesly-sound

Example

var song = require('nesly-sound')();

song.square1(['C5', 'E5', 'G5', 'C6'])
    .timing(1/8);

song.done();
song.write();

Methods

.square1(notes)

.square2(notes)

.triangle(notes)

Takes an Array of notes. Notes can either be strings with the note letter and octave, or a note object created with octavian.

.noise(notes)

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.

3.1.0

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

2.7.2

9 years ago

2.7.1

9 years ago

2.7.0

9 years ago

2.6.1

9 years ago

2.6.0

9 years ago

2.5.0

9 years ago

2.4.1

9 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago