diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -81,6 +81,21 @@ npm install npm start ``` +## Notes + +- `0x92 & 0xf0 = 144`, Ch3 noteOn +- `0x80 & 0xf0 = 128`, Ch1 noteOff + +``` +function frequencyFromNoteNumber(note) { + return 440 * Math.pow(2, (note - 69) / 12); +} +``` + +- Note values are on a range from 0–127, lowest to highest. For example, the lowest note on an 88-key piano has a value of 21, and the highest note is 108. A “middle C” is 60. +- Velocity values are also given on a range from 0–127 (softest to loudest). The softest possible “note on” velocity is 1. + + ## TODO The idea is to build a synth/mini sequencer, here's some tasks I need to tackle before then. |