5 ms·
I generate an n-dimensional just intonation pitch lattice, based on my study of the work of Ben Johnston. I like it because it’s kind of small, but tests sever
by jcpst 4y ago
I generate an n-dimensional just intonation pitch lattice, based on my study of the work of Ben Johnston.
I like it because it’s kind of small, but tests several aspects of working in the language.
* the program needs support for several numeric types: integers, floats and rationals.
* several basic math algorithms are needed, which will either test the std lib, how to use the package manager, or other language constructs as I pipeline implement them
* how easy is it to write/run tests
Here’s one version in Rust, which links to clojure, cl versions. Want to try it with Julia next due to the built-in support for rationals.
https://github.com/jcpst/johnston https://github.com/jcpst/johnston
https://en.m.wikipedia.org/wiki/Lattice_(music) https://en.m.wikipedia.org/wiki/Lattice_(music)