Math art #5: The sound of integer sequences

in #mathematics6 years ago (edited)

A few weeks ago I came across a muscial sub-page of The On-Line Encyclopedia of Integer Sequences (or OEIS for short) which contains a number integer sequences converted to music. I thought it would be cool to write a short post about the underlying idea and generate some mathematical music:

I will directly kick off with the mathematical music I made:



Integer sequences

The music was made by converting mathematical integer sequences to sound. An integer is a whole number and a sequence is just a collection of enumerated objects which means that there is a first, second, third etc. object. So an integer sequence is a collection of enumerated integers. Sequence are usually denoted using braces and commas, for example {5,10,3} is sequence with first element 5, second element 10 and third element 3.

Sequence don't have to have to consist out of finite numbers. For example, the fibonacci sequence has infinite elements. The fibonacci sequence is also an example of a sequence where the next element in the sequence is determined by the previous elements. More specifically, a number in the sequence (after the first two numbers) is determined by the two numbers that appear before it. Not all sequences are of this type. For example, you can turn π into a sequence by turning its decimals into a sequence, so like this {3,1,4,5,9, .... }. If I would only give you the first few numbers of this sequence without telling that it is connected to π it would be difficult to guess what the next number should be.

Converting integer sequences to sound

How can you convert integer sequence to sound? Here is one way of doing it:


bitmap.png

In the above picture I identified a number with a white key on the piano. Here 0 is the so-called middle C of the piano. From there on I just number the keys in ascending order. The problem here is that if you start numbering the piano keys you will at some point run out of keys to number so when that happens I will just return to the middle C. A normal piano has 35 keys from the middle C which means that the number 36 corresponds to the same tone as 0 which is the middle C again. That is all there is to it :)

Some interesting things to notice from the music

For two of these integer sequence you can hear something interesting happening:

  • Prime numbers: You can hear the music intervals between the tones increasing over time. This is connected to the theory on so-called Prime-Gaps [1].
  • Fibonacci numbers: It repeats itself. This is because of special type of periods occuring in the Fibonacci sequence which are called Pisano periods[2].

References

[1] Prime gaps. http://mathworld.wolfram.com/PrimeGaps.html
[2] Pisano periods. http://mathworld.wolfram.com/PisanoPeriod.html



All images made with inkscape. It is free! The video was made using OpenShot


Merchandise :D


2018-06-07 (2).png
There is a MathOwl shop which sells my artsy fartsy stuff. If you got some spare money head over there. You can learn about the colors of pi over here here. I also have really cheap stuff available like these stickers They are an absolute hoot.



Join #steemSTEM

#steemSTEM is a community project with the goal to promote and support Science, Technology, Engineering and Mathematics related content and activities on the STEEM blockchain. If you wish to support the #steemSTEM project you can: Contribute STEM content using the #steemstem tag | Support steemstem authors | Join our curation trail | Join our Discord community | Delegate SP to steemstem

Convenient Delegation Links:

50 SP | 100SP | 500SP | 1000SP | 5000SP | 10000SP | 50000SP

Image courtesy: Me ;)

Sort:  

Thanks for a really interesting article. I guess by sticking to the c maj scale notes it could sound more musical, the sequences could create modes or unusual melodies. If you introduce the sharp / flat notes you could create some interesting hybrid scales but also introduce dissonance. I like using randomisation in music, doesn't always work but can produce unusual results

Thanks for the support.

It is not too hard to write a program which implements in the same idea for a given scale. In addition, you can also automatise an accompaniement for the chosen scale. :)

Hi @mathowl!

Your post was upvoted by utopian.io in cooperation with steemstem - supporting knowledge, innovation and technological advancement on the Steem Blockchain.

Contribute to Open Source with utopian.io

Learn how to contribute on our website and join the new open source economy.

Want to chat? Join the Utopian Community on Discord https://discord.gg/h52nFrV



This post has been voted on by the steemstem curation team and voting trail.

There is more to SteemSTEM than just writing posts, check here for some more tips on being a community member. You can also join our discord here to get to know the rest of the community!

WARNING! The comment below by @erudire leads to a known phishing site that could steal your account.
Do not open links from users you do not trust. Do not provide your private keys to any third party websites.

Congratulations @mathowl! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Home stretch to the finals. Do not miss them!


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by mathowl from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Love it! Well done!

blog steemit banner.png

There are some issues with Dtube so I also uploaded it to youtube -> Apparently, the Dtube video is not working. So I also uploaded it to youtube ->

Coin Marketplace

STEEM 0.36
TRX 0.12
JST 0.040
BTC 70846.59
ETH 3567.69
USDT 1.00
SBD 4.79