Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PI as Music

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
17,653
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 14, 2008

Happy PI Day!!!

This is my contribution. I decided to see what pi sounded like as music. I was going to do 10,000 notes, but that was wayyyy too long. I settled for 3000 notes. This only took about 10 lines of code, so don't expect too much. For a number with no pattern, it sure has a catchy melody! It sort of reminds me of a really old bad Atari video game soundtrack. LOL Does it remind you of anything???

Each note is derived from each digit. The formula for the frequency I used is as follows:

freq = (100 + (digit * 100)) hertz played at 100ms intervals. Hope you enjoy! :)

Category:

Music

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (squimball)

  • SOMEONE SHOULD DO PI MUSIC IN BINARY

  • @dsaerno I think it would turn out about the same. I'm no math expert though. :P

  • instead of this sounds there should be percussion!!!!!

  • @irka271981 Hahaha, yeah I've thought about doing that too. If it is easy enough, I just might. I've never tried programming MIDI through code before though, so who knows. :)

  • Hi i can migth redo this in c ++ but how did you store the numbers ?

  • I just stored them in a txt file and played the notes as I read the file (byte by byte). I'm sure there are other ways as well.

Top Comments

  • OMG, please send me this program, it'd be so much fun

  • thanx!

see all

All Comments (41)

Sign In or Sign Up now to post a comment!
  • it sounds like Mario! wtf :P

  • 1:27

  • : )

  • 3.1415926535897932384626433832 79502884197169399375105820974 9­4459230781640628620899862803 48 253421170679821480865132823 066­47093844609550582231725359 4081 2848111745028410270193852 11055­596446229489549303819644 288109 75665933446128475648233 7867831­6527120190914564856692 34603486 104543266482133936072 602491412­73724587006606315588 1748815209 2096282925409171536 43678925903­600113305305488204 665213841469 51941511609 JIZZ ALL OVER THE PLACE!

  • 3.1415926535897932384626433832­­79502884197169399375105820974­9­4459230781640628620899862803­48­253421170679821480865132823­066­47093844609550582231725359­4081­2848111745028410270193852­11055­596446229489549303819644­288109­75665933446128475648233­7867831­6527120190914564856692­34603486­104543266482133936072­602491412­73724587006606315588­1748815209­2096282925409171536­43678925903­600113305305488204­665213841469­51941511609 BOO YAH! :D

  • 3.1415926535897932384626433832­­79502884197169399375105820974­9­4459230781640628620899862803­48­253421170679821480865132823­066­47093844609550582231725359­4081­2848111745028410270193852­11055­596446229489549303819644­288109­75665933446128475648233­7867831­6527120190914564856692­34603486­104543266482133936072­602491412­73724587006606315588­1748815209­2096282925409171536­43678925903­600113305305488204­665213841469­51941511609

  • What is awesome is the small patterns that you can hear.

    Of course, this is because we are expressing pi in base 10 meaning only 10 possible digits (0-9) and therefore only 10 possible pitches, so there's only so many possible combinations.

  • sounds 8 bit

    

  • @intheshitter haha very true.

  • @dsaerno Print some digits in binary, then play them with your piano. I'll do that right now and hear what it sounds like.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more