GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - audiojs/note: Music-theory primitives — Hz ↔ MIDI ↔ name, cents, scales, pitch snapping

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
convert.js
convert.js
 
 
index.d.ts
index.d.ts
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
scale.js
scale.js
 
 
test.js
test.js
 
 

Repository files navigation

@audio/note

Try it in the browser: Tuner. Runs on this package, nothing is uploaded.

Music-theory primitives: Hz ↔ MIDI ↔ note name, cents, scales, snapping.

import { hzToMidi, midiToHz, name, parse, cents, SCALES, snapMidi, snapHz } from '@audio/note'

name(69)                          // 'A4'
cents(443)                        // { midi: 69, name: 'A4', hz: 440, cents: 11.7 } — tuner readout
snapHz(450, { scale: 'major' })   // nearest major-scale frequency

Hz/MIDI/name conversion + scale tables/snapping — one small, always-together substrate. Not a music-theory library (chords, keys, roman numerals): that's composition/notation tooling out of @audio's audio-processing scope — see tonal.js/teoria.js for that. Used by @audio/tune (pitch correction), the tuner tool, and @audio/midi.

About

Music-theory primitives — Hz ↔ MIDI ↔ name, cents, scales, pitch snapping

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.