Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emkay/nesly-sound
Create beautiful music on your NES
https://github.com/emkay/nesly-sound
assembly nes noise sound
Last synced: 20 days ago
JSON representation
Create beautiful music on your NES
- Host: GitHub
- URL: https://github.com/emkay/nesly-sound
- Owner: emkay
- License: mit
- Created: 2013-11-03T21:32:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T19:09:35.000Z (over 2 years ago)
- Last Synced: 2024-12-29T06:02:22.679Z (about 1 month ago)
- Topics: assembly, nes, noise, sound
- Language: Assembly
- Size: 687 KB
- Stars: 35
- Watchers: 4
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
nesly-sound
===========[![Greenkeeper badge](https://badges.greenkeeper.io/emkay/nesly-sound.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/emkay/nesly-sound.svg?branch=master)](https://travis-ci.org/emkay/nesly-sound)
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/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](http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=7155). Without those this wouldn't even be possible.
## Install
`npm install nesly-sound`
## Example
```javascript
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](https://github.com/stevekinney/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.