Hacker GitHub

← All repos

tonaljs/tonal

View on GitHub ↗ ★ 4,267 TypeScript

A music theory library for Javascript

9 mentions on Hacker News by 9 people: 3 stories, 6 comments · first 2016-03-13 · latest 2026-02-17

Mentions per year 9 mentions · busiest year 2024 (4)
20082026
  1. …> myself yesterday and took a cursory look. Nice app. They use a library called `tonal` < https://github.com/tonaljs/tonal > for their music theory logic, which ought to be a good resource to validate against.
  2. https://github.com/tonaljs/tonal does a bunch of theory stuff. I think there’s another JS library I’ve used too but I can’t think of the name. If he wants to generate audio, Tone.js can be a useful higher level abstraction for WebAudio.
  3. …deal with this at all, it would be handy nonetheless. Unfortunately, it's currently hard coded: https://github.com/tonaljs/tonal/blob/main/packages%2Fpitch-... https://github.com/tonaljs/tonal/blob/main/packages%2Fmidi%2...
    comment by hunter2_ · 2024-04-04 · in Tonal.js: Functional music theory lib
  4. …arrays as simple data structures rather than using OO features like inheritance and mutation. [1] https://github.com/tonaljs/tonal/blob/main/packages/chord/in...
    comment by metaxy2 · 2024-04-03 · in Tonal.js: Functional music theory lib
  5. …similar music theory library for Javascript[0] I've had some success with this: * Tonal / Tonal.js https://github.com/tonaljs/tonal [0] Or, in a pinch, even with a Godot 4 web export as I did for my (very incomplete) "AI and Games" Game…
  6. …tonal for chord recognition under the hood, so these are the chord types that it can recognize: https://github.com/danigb/tonal/blob/master/packages/diction...