KO
|
EN
gitlite — search
Search
#php
#java
#c-plus-plus
#javascript
#python
#ruby
#metrics
#monitoring
#docker
#android
#rails
#c-sharp
nesly-sound
★ 35
Open GitHub ↗
Create beautiful music on your NES
Download README (.md)
Explore Similar Repositories
r-quant
:
R code for quantitative analysis in finance
ZeroLengthRadar
:
IntelliJ plugin to discover invisible zero length characters in code
Temperatus
:
A Mac application which shows the current temperature using a Thermodo device
PhotoDemo
:
android 后台录音和拍照的demo
SaleaeSDIOAnalyzer
:
SDIO Analyzer for Saleae Logic
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
nesly-sound
?
Download (.md)
nesly-sound =========== [](https://greenkeeper.io/) [](https://travis-ci.org/emkay/nesly-sound) [](https://github.com/feross/standard) [](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.