DEV Community

Discussion on: Visualizing Fibonacci: For the Music Lover in You!

Collapse
 
matthras profile image
Matthew Mack • Edited

Haven't done it myself due to time/distractions/other projects, but have been wanting to convert the digits of pi or e into sheet music. The only catch is that there are only 10 single digits, but 12 notes of the chromatic scale. This is easily solved by converting the aforementioned numbers into base 12 (our normal numbers are in base 10, binary is in base 2, hexadecimal is in base 16, etc.) but I haven't looked into how to do that for decimal places.

I might whip up a web version of this if OP is OK with it, but for any interested others, you can do it entirely front-end using Vexflow (for displaying the music) and Band.js (for generating the audio).

Collapse
 
danku profile image
Daniel McMahon

Go for it! Be sure to post your updates here would love to see and hear the results!

Collapse
 
danku profile image
Daniel McMahon

really like the idea of converting to a different base as well, could have some other potential implications!