Hacker News new | ask | show | jobs
A web app that can play musical scales according to mathematical equations (alexcrist.github.io)
84 points by eviledamame 1708 days ago
11 comments

Feature request: If I use an ilegal equation like y = sin(2x), then it shows a flat line. It would be nice to add an error icon or other indication that something is wrong.

Also, how is this parsing the equations? It may be nice to extend it to some usual cases like my equation.

Thank you for the request! Request granted! 2x should now work. Equation input will also now highlight red if an error is present
This is fun!

Feature request: mute a whole track - its a useful way of figuring out how each bit sounds without the other bits

Looks like you can – volume icon in the top right of each collapsible track listing.
Ah yes, I see now, thanks
It crashes when using tan(x)
Nice find. Looks like infinity was not being handled gracefully. Fixed now!
also log(x)
Really nice that it's multi-track. I've done a bit of byte muzak, but this is more fun and instructive since you see and hear the fns.
Audio doesn’t appear to work in mobile Safari
It worked for me, I had to disable Silent Mode
Tried x/sin(x) as a formula, and it crashed. Apart from that, it's fun
Looked like infinity was not being handled gracefully. Fixed now!
It should play a Crash cymbal sound for every crash
Similarly tried tan(x) and it crashed
x^-1 crashes as well.
That's really fun, got lost in that for a fair while.
Great idea, but keeps crashing for me (firefox)
Is it useful to have complex functions, rotations ?
this is super cool; with this + promt-enginning Codex to work with equations and algebra we can have a natural-langauge-based synthesizer!
I wonder how easy it is to replicate the UX but with sonic pi as the backend (so we can get rid of all the crashes)
Just switched out the backend to a more robust library (mathjs). A lot of the previous problems should be fixed now :)