Ask HN: Tools or frameworks to build music theory games
134 points ·
pil0u
·
He is now on a journey to build games that interact with notes on scores, like colorize all the Cs, click on the notes that are wrong vs what you hear etc.
He is building everything from scratch, with the scores, the notes, and I'm wondering if there are some tools or libraries out there that provide much flexibility to build stuff for music theory.
ssttoo ·8 days ago
Libs that helped:
- https://github.com/saebekassebil/teoria for scales, chords etc
- https://github.com/0xfe/vexflow for notation
- https://github.com/goldfire/howler.js for playing piano samples. I used to DIY (because I love DIY), not even using WebAudio but recently tried howler and it's abstracting a few things I don't need to worry about
- https://github.com/omnibrain/svguitar/ draw guitar fretboard. I recently did my first guitar-specific exercise and this was good. I even filed a feature request and the dev did it
I'd be happy to help you and your prof if you need anything, lmk
Show replies
tomduncalf ·9 days ago
If he wants to generate audio, Tone.js can be a useful higher level abstraction for WebAudio.
Show replies
burningion ·5 days ago
I've used it to build an open source vocal range detector: https://www.makeartwithpython.com/blog/vocal-range-python-mu...
retooth ·9 days ago
https://xenharmlib.readthedocs.io/en/latest/
bambax ·4 days ago
https://www.babeloop.com/
It's built mostly from scratch except for the disply of notes that uses VexFlow and the playing of notes, that uses Tone.js
VexFlow is pretty cool.
There are js libraries for dealing with music theory; I can look into that again if you need.
Show replies