Ask HN: Tools or frameworks to build music theory games

24 pointsposted 15 hours ago
by pil0u

Item id: 42260179

6 Comments

retooth

4 hours ago

I am not sure if it is only JS libraries you are looking for (since it is an Electron app), but I released a fairly comprehensive python music theory library that not only supports Western tunings, but all sorts of equal temperaments. It even has some support for post-tonal music theory.

https://xenharmlib.readthedocs.io/en/latest/

tomduncalf

14 hours ago

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.

nimblegorilla

13 hours ago

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.

everythingabili

3 hours ago

Yeah... one might use Sonic to load a csv and generate sounds based on your data, that might then be used as static assets in their app.

I recently helped a tutor using BespokeSynth to create audio explainers, wiring together frequencies and interactive oscillators and waveform viewers to explain resonant frequencies (or something, I didn't completely get it)

https://static.everythingability.opalstacked.com/bespoke_syn...