Skip to content

allanino/numbers-music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numbers sound!

We can select mathematical constants representations in various number bases and map it's digits to musical notes to be played.

We can also use custom numbers, so you won't be sad if I didn't put your favorite mathematical constant in there. But it's relatively easy to add new constants in there. We just need to have it's representations from base 2 to 12 with 2048 digits each.

Examples:

Pi in base 12 mapped to a chromatic scale

http://allanino.me/numbers-music/?tracks=[{"number":"pi","base":12,"speed":5.0,"map":[48,49,50,51,52,53,54,55,56,57,58,59],"instrument":"pluck"}]

This reproduces the music I've setted in this YouTube video: https://www.youtube.com/watch?v=eP3_NioYP5U

Pi in base 10 mapped to a major scale

http://allanino.me/numbers-music/?tracks=[{"number":"pi","base":10,"speed":5.0,"map":[48,50,52,53,55,57,59,60,62,64],"instrument":"pluck"}]

This reproduces the music I've setted in this YouTube video: https://www.youtube.com/watch?v=jNM7feiMpFg

Pi Euler binary madness

http://allanino.me/numbers-music/?tracks=[{"number":"pi","base":2,"speed":10.0,"map":[48,60],"instrument":"pluck"},{"number":"euler","base":2,"speed":10.0,"map":[48,55],"instrument":"pluck"}]

Pi-Euler-Phi trio in major scale

http://allanino.me/numbers-music/?tracks=[{"number":"pi","base":10,"speed":5,"map":[48,50,52,53,55,57,59,60,62,64,58,59],"instrument":"pluck"},{"number":"euler","base":10,"speed":2.5,"map":[48,50,52,53,55,57,59,60,62,64,58,59],"instrument":"pluck"},{"number":"phi","base":10,"speed":1.3,"map":[48,50,52,53,55,57,59,60,62,64,58,59],"instrument":"pluck"}]

Oh Suzanna

http://allanino.me/numbers-music/?tracks=[{"number":"12305050065030100230302010200001230505006503010023030202010000004004006060060500301020001230505006503010023030202010000","speed":10.0,"instrument":"pluck","map":[0,48,50,52,53,55,57]}]

About

Generate music from numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published