create account

Math art #6: Converting number sequences to animations with piano music by mathowl

View this thread on: hive.blogpeakd.comecency.com
· @mathowl · (edited)
$13.28
Math art #6: Converting number sequences to animations with piano music
*A while back I created animations with music generated by mathematical number sequence.  I had not explained the method yet. So it is a perfect topic for another post :D*

A number sequence is just an ordered set of numbers. For example, { 1 , 2 , 3 , 4 ,  5 , 6 } is a sequence.  These sequence can also have infinite elements. For example, you can convert π to a sequence by ordering its decimals in the natural way, so like this { 3 , 1  , 4 , 1 , 5 , 9 , ... }.   You can also use a function to generate a sequence. For example, the sequence generated by  n<sup>2</sup> for n=1 to n=3 is given by {1 , 4 ,  9}.

Here are two  videos I generated using number sequences:

<center>
<a href="https://d.tube/#!/v/mathowl/ft7tj4gm" rel="noopener" title="This link will take you away from steemit.com"><img src="https://steemitimages.com/0x0/https://ipfs.io/ipfs/QmYtimX3GNXTDVgjFiPzQWK1XarBxZVYkjaV9fbzAd9hmH"></a><div></div><div></div>
</center>

<center>
<a href="https://d.tube/#!/v/mathowl/tkfji0fh" rel="noopener" title="This link will take you away from steemit.com"><img src="https://steemitimages.com/0x0/https://ipfs.io/ipfs/QmbUgLwTp7HhG9EmXfwpmjLeNYEqBHb56weh9ciE6jrzi2"></a>
</center>

There is the animation and there is the piano music. The main idea is that the sequence is converted to animation frames and the animation frames are then converted to piano music. So I will kick off with explaining how the animation is generated.


<div class="pull-right"><img src="https://cdn.steemitimages.com/1400x1400/https://cdn.steemitimages.com/DQmTQHPLYoZKsprUGWP9rv9Rpk43dmavvLvx5W4epgpT4gv/dancinglines.png" /></div>

## Animation
Let me explain the animation method by example. Consider the sequence { 1 , 2 , 3 , 4 ,  5 , 6 } . This sequence will act like a list of sequential commands which describe a road/path. We need to start by selecting a point on a white sheet of paper, see the black dot in the image on the right. The first number of the sequence indicates the distance we need to move in a west-ward direction.  For the considered sequence the distance is 1. Then we make a 90 degrees angle towards the left and go forward in a distance equal to the second number, which in this case is 2.  Then we  make a left 90 degrees angle and go forward in a distance equal to the third number, which  in this case is 3.  Then we make... you get the idea, we just repeat the process. The path traced will then be given by the image on the right.



<div class="pull-left"><img src="https://cdn.steemitimages.com/DQmV5GT7pFbD1ooXkCs6hfhRB74TXzXYg9EJoE7vUq6r1xV/dancinglines.png" /></div>

## Music
I will continue with the same example, the sequence { 1 , 2 , 3 , 4 ,  5 , 6 } .  The position of each 90 degrees corner on this winding figure, the red dots in the image, can we represented in the plane by an x- and y-coordinate. The x- and y-coordinate  can then be mapped onto the keys of a piano. More specifically, I will let (x,y) correspond to a musical interval using the method of one of my [previous posts](https://steemit.com/mathematics/@mathowl/math-art-5-the-sound-of-integer-sequences). When the program draws an edge it will simultaneously play that interval. 



## Back to the videos
Now that we know how the videos were generated we can have a look at what kind of information we can derive from the videos. For the first video we see that it seems to converge to a square so this means that all edge have the same length so  the final numbers of the sequence are all the same. The second video, the decimals of √2, described an irratic pattern. This makes sense because  √2 is an irrational number, so when you write the decimals as a sequence the sequence never repeats itself. That is why you get the strange pattern. :D


 





<hr>

**Sources:** All images made using [inkscape](https://inkscape.org/en/) it is free!
<hr />
<center>
<h2> Merchandise :D </h2><br />
</center>
<p><img src="https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmdwbunfcePxAncstQN21fDefS97B3ofRrAABmi29zD26B/g7592-1-9.png" alt="2018-06-07 (2).png" /><br />
There is a  <a href="https://www.redbubble.com/people/MathOwl/shop" rel="noopener" title="This link will take you away from steemit.com">MathOwl shop</a> 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 <a href="https://steemit.com/mathematics/@mathowl/math-art-4-the-colors-of-p">here</a>.  I also have really cheap stuff available like these <a href="https://www.redbubble.com/people/mathowl/shop/stickers?accordion=product&amp;cat_context=u-stationery&amp;ref=artist_shop_product_refinement&amp;asc=u" rel="noopener" title="This link will take you away from steemit.com">stickers</a> They are an absolute hoot.</p>
<hr /> 
<hr /> 
<p></p><h3><center>Join <a href="/trending/steemstem"> #steemSTEM</a></center></h3>
<p><a href="/trending/steemstem">#steemSTEM</a> 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 <a href="/trending/steemstem"> #steemSTEM</a> project you can: <strong>Contribute STEM content using the <a href="/trending/steemstem"> #steemstem</a> tag | Support steemstem authors | Join our curation trail | Join our <a href="https://discord.gg/mKSKQ7T" rel="noopener" title="This link will take you away from steemit.com">Discord community</a> | Delegate SP to steemstem</strong></p>
<h4><center>Convenient Delegation Links:</center></h4>
<p><strong><center> <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=101913.0159%20VESTS" rel="noopener" title="This link will take you away from steemit.com">50 SP</a> | <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=203826.0318%20VESTS" rel="noopener" title="This link will take you away from steemit.com">100SP</a> | <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=1019130.1592%20VESTS" rel="noopener" title="This link will take you away from steemit.com">500SP</a> | <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=2038258.3074%20VESTS" rel="noopener" title="This link will take you away from steemit.com">1000SP</a> | <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=10191291.5921%20VESTS" rel="noopener" title="This link will take you away from steemit.com">5000SP</a> | <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=20382581.1841%20VESTS" rel="noopener" title="This link will take you away from steemit.com">10000SP</a> | <a href="https://steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=steemstem&amp;vesting_shares=101912901.9206%20VESTS" rel="noopener" title="This link will take you away from steemit.com">50000SP</a> </center></strong><br />
<center><img src="https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmYSEjNhZDkm4FQPsnPgBdLszb82txzj4fNtKh2Bhb5uiU/banner.png" /></center><center>Image courtesy: <a href="https://steemit.com/@mathowl">Me ;) </a></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 125 others
👎  
properties (23)
authormathowl
permlinkmath-art-6-converting-number-sequences-to-animations-with-piano-music
categorymathematics
json_metadata{"tags":["mathematics","maths","steemstem","music"],"image":["https://steemitimages.com/0x0/https://ipfs.io/ipfs/QmYtimX3GNXTDVgjFiPzQWK1XarBxZVYkjaV9fbzAd9hmH","https://steemitimages.com/0x0/https://ipfs.io/ipfs/QmbUgLwTp7HhG9EmXfwpmjLeNYEqBHb56weh9ciE6jrzi2","https://cdn.steemitimages.com/1400x1400/https://cdn.steemitimages.com/DQmTQHPLYoZKsprUGWP9rv9Rpk43dmavvLvx5W4epgpT4gv/dancinglines.png","https://cdn.steemitimages.com/DQmV5GT7pFbD1ooXkCs6hfhRB74TXzXYg9EJoE7vUq6r1xV/dancinglines.png","https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmdwbunfcePxAncstQN21fDefS97B3ofRrAABmi29zD26B/g7592-1-9.png","https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmYSEjNhZDkm4FQPsnPgBdLszb82txzj4fNtKh2Bhb5uiU/banner.png"],"links":["https://d.tube/#!/v/mathowl/ft7tj4gm","https://d.tube/#!/v/mathowl/tkfji0fh","https://steemit.com/mathematics/@mathowl/math-art-5-the-sound-of-integer-sequences","https://inkscape.org/en/","https://www.redbubble.com/people/MathOwl/shop","https://steemit.com/mathematics/@mathowl/math-art-4-the-colors-of-p","https://www.redbubble.com/people/mathowl/shop/stickers?accordion=product&cat_context=u-stationery&ref=artist_shop_product_refinement&asc=u","/trending/steemstem","https://discord.gg/mKSKQ7T","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=101913.0159%20VESTS","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=203826.0318%20VESTS","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=1019130.1592%20VESTS","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=2038258.3074%20VESTS","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=10191291.5921%20VESTS","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=20382581.1841%20VESTS","https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemstem&vesting_shares=101912901.9206%20VESTS","https://steemit.com/@mathowl"],"app":"steemit/0.1","format":"markdown"}
created2018-08-09 02:23:54
last_update2018-08-09 13:44:42
depth0
children8
last_payout2018-08-16 02:23:54
cashout_time1969-12-31 23:59:59
total_payout_value10.121 HBD
curator_payout_value3.158 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7,366
author_reputation44,993,635,814,620
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,588,324
net_rshares10,016,493,294,257
author_curate_reward""
vote details (190)
@followforupvotes ·
Congratulations
As a follower of @followforupvotes this post has been randomly selected and upvoted! Enjoy your upvote and have a great day!
properties (22)
authorfollowforupvotes
permlinkre-mathowl-math-art-6-converting-number-sequences-to-animations-with-piano-music-20180809t025454829z
categorymathematics
json_metadata""
created2018-08-09 02:54:57
last_update2018-08-09 02:54:57
depth1
children0
last_payout2018-08-16 02:54:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length124
author_reputation24,665,782,446,239
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,590,613
net_rshares0
@javier.dejuan ·
maybe you can choose the Fibonacci sequence, it always work when we step from science into any kind of art.
properties (22)
authorjavier.dejuan
permlinkre-mathowl-math-art-6-converting-number-sequences-to-animations-with-piano-music-20180810t165717133z
categorymathematics
json_metadata{"tags":["mathematics"],"app":"steemit/0.1"}
created2018-08-10 16:57:18
last_update2018-08-10 16:57:18
depth1
children2
last_payout2018-08-17 16:57:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation21,843,515,196,862
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,775,587
net_rshares0
@mathowl · (edited)
$0.05
https://youtu.be/XpLto5sOo-U?t=79
👍  ,
properties (23)
authormathowl
permlinkre-javierdejuan-re-mathowl-math-art-6-converting-number-sequences-to-animations-with-piano-music-20180811t002016950z
categorymathematics
json_metadata{"tags":["mathematics"],"image":["https://img.youtube.com/vi/XpLto5sOo-U/0.jpg"],"links":["https://youtu.be/XpLto5sOo-U?t=79"],"app":"steemit/0.1"}
created2018-08-11 00:20:15
last_update2018-08-11 00:20:57
depth2
children1
last_payout2018-08-18 00:20:15
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation44,993,635,814,620
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,804,809
net_rshares38,495,605,822
author_curate_reward""
vote details (2)
@javier.dejuan ·
awesome!!
properties (22)
authorjavier.dejuan
permlinkre-mathowl-re-javierdejuan-re-mathowl-math-art-6-converting-number-sequences-to-animations-with-piano-music-20180811t032433665z
categorymathematics
json_metadata{"tags":["mathematics"],"app":"steemit/0.1"}
created2018-08-11 03:24:33
last_update2018-08-11 03:24:33
depth3
children0
last_payout2018-08-18 03:24:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation21,843,515,196,862
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,816,117
net_rshares0
@minnowsupport ·
<p>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, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
authorminnowsupport
permlinkre-math-art-6-converting-number-sequences-to-animations-with-piano-music-20180809t133949z
categorymathematics
json_metadata"{"app": "beem/0.19.50"}"
created2018-08-09 13:39:48
last_update2018-08-09 13:39:48
depth1
children0
last_payout2018-08-16 13:39:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,690
author_reputation148,902,805,319,183
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,642,705
net_rshares0
@scienceblocks ·
$0.03
Ah! You have given me new stuff to kill time on MATLAB. Guess what I will be doing this weekend. Last time I was obsessed with creating rgb images using z = f(z) + c on different permutations and combination of conplex plains.  Guess this time it will is going to be music. May time have mercy on me!
👍  
properties (23)
authorscienceblocks
permlinkre-mathowl-201889t85848400z
categorymathematics
json_metadata{"tags":["mathematics","maths","steemstem","music"],"app":"esteem/1.6.0","format":"markdown+html","community":"esteem"}
created2018-08-09 03:28:54
last_update2018-08-09 03:28:54
depth1
children0
last_payout2018-08-16 03:28:54
cashout_time1969-12-31 23:59:59
total_payout_value0.021 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length300
author_reputation59,953,777,329,907
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,593,254
net_rshares23,328,724,689
author_curate_reward""
vote details (1)
@steemitboard ·
Congratulations @mathowl! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@mathowl) Award for the number of upvotes received

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-mathowl-20180810t015141000z
categorymathematics
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-08-10 01:51:39
last_update2018-08-10 01:51:39
depth1
children0
last_payout2018-08-17 01:51:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length726
author_reputation38,975,615,169,260
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,701,854
net_rshares0
@steemstem ·
post_voted_by
<center> https://cdn.discordapp.com/attachments/354723995037466624/463380522928963599/steemSTEM.png</center> <br><br> This post has been voted on by the steemstem curation team and voting trail.  <br> <br>There is more to SteemSTEM than just writing posts, check <a href="https://steemit.com/steemstem/@steemstem/being-a-member-of-the-steemstem-community">here</a> for some more tips on being a community member. You can also join our discord <a href="https://discord.gg/BPARaqn">here</a> to get to know the rest of the community!
properties (22)
authorsteemstem
permlinkre-math-art-6-converting-number-sequences-to-animations-with-piano-music-20180811t164257
categorymathematics
json_metadata""
created2018-08-11 16:42:57
last_update2018-08-11 16:42:57
depth1
children0
last_payout2018-08-18 16:42:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length530
author_reputation262,017,435,115,313
root_title"Math art #6: Converting number sequences to animations with piano music"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,873,391
net_rshares0