Ask HN: Tools or frameworks to build music theory games

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. vexflow

    A JavaScript library for rendering music notation and guitar tablature.

    I am also building a piano-learning game.

    I remember using WebMIDI for the interface, TonalJS for chord/theory.

    From another comment, https://github.com/0xfe/vexflow looks cool, I could use it together with PIXI.js for the rendering.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. tonal

    A music theory library for Javascript

    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.

  4. strudel

    Web-based environment for live coding algorithmic patterns, incorporating a faithful port of TidalCycles to JavaScript

  5. MusicTheory.jl

    Music theory in Julia

    https://github.com/JuliaMusic/MusicTheory.jl

  6. Sonic Pi

    Code. Music. Live.

    It's not really a framework, but I've been having a lot of fun live coding music in Sonic Pi: https://sonic-pi.net/

    It has built-in functions for chords and scales and is pretty easy to make catchy loops.

  7. teoria

    Javascript taught Music Theory

  8. harmonylib

    A Python library for using music theory concepts

    I'm currently working on a Python-based demonstration of some music theory concept for an article in the Paged Out! magazine. Very early stages but it might provide some inspiration regarding how to describe music theory concepts using code: https://github.com/tiniuclx/harmonylib

    I've also made a "music theory interpreter" in Rust that goes a bit further. The source files for music theory & the chord database might prove especially interesting. https://github.com/tiniuclx/harmony-explorer

    Finally, Ian Ring's website is a very fascinating place to learn about scales in particular: https://ianring.com/musictheory/scales/

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. harmony-explorer

    The Google of Harmony

    I'm currently working on a Python-based demonstration of some music theory concept for an article in the Paged Out! magazine. Very early stages but it might provide some inspiration regarding how to describe music theory concepts using code: https://github.com/tiniuclx/harmonylib

    I've also made a "music theory interpreter" in Rust that goes a bit further. The source files for music theory & the chord database might prove especially interesting. https://github.com/tiniuclx/harmony-explorer

    Finally, Ian Ring's website is a very fascinating place to learn about scales in particular: https://ianring.com/musictheory/scales/

  11. music21

    music21 is a Toolkit for Computational Musicology

    Nobody else has mentioned it, but Music21 is an extremely good library doing just this: https://github.com/cuthbertLab/music21

    I've used it to build an open source vocal range detector: https://www.makeartwithpython.com/blog/vocal-range-python-mu...

  12. beatstepper

    Webaudio event scheduler

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Glicol: Next-generation computer music language

    5 projects | news.ycombinator.com | 10 Jan 2025
  • Sonic Pi: Ruby as a Composition Tool

    2 projects | news.ycombinator.com | 9 Aug 2024
  • Strudel: A live coding platform to write dynamic music pieces in the browser

    7 projects | news.ycombinator.com | 3 Apr 2024
  • Velato: A programming language where source code must be a valid MIDI music file

    3 projects | news.ycombinator.com | 4 Mar 2024
  • Opusmodus: Common Lisp Music Composition System

    6 projects | news.ycombinator.com | 8 Nov 2023

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?