Forest's Blog

Memorizing arbitrary sequences of integers with music

Written on

I play guitar, and I mostly use guitar tablature to learn or write music. I've long been mildly amused by the fact that by committing a tablature to memory, I've inadvertently memorized a long string of integers.

E|-------------------------------------------------------|
B|-----1-0h1p0-3-5b6-----1-0h1p0-3-5b6-----1-0h1p0-3-5b6-|
G|---2-----------------2-----------------2---------------|
D|-2-----------------2-----------------2-----------------|
A|-------------------------------------------------------|
E|-------------------------------------------------------|

For example, by learning the first few phrases of Minor Swing, you've committed a sequence of ~27 integers to memory. If you learn the whole song, you'll have hundreds of digits committed.

Putting it to the test

Okay, now that you've learned you have this superpower, how do you put it to use? Learning a nonmusical way of reciting the notes to a song is not particularly useful, nor impressive to audiences. Instead, the obvious answer is to start memorizing pi - a slightly less useless skill.

Now, the main flaw of this technique becomes apparent. It's easy to memorize songs, there is a layer of musical information that you embed in your brain, and the tablature is incidental information. The rhythm, melody, chord movements, the muscle memory from practice, and so on - these all contribute to forming this memory.

So, we first need to encode pi into guitar tablature, preferably in a musical way. Then we'll learn this song.

I did this, and came up with a very, um, avant-garde tune. But it worked and I was able to learn the first 50 digits of pi in about 30 minutes. I know this is not particularly impressive in the realm of memorizing pi, but the speed and ease at which I was able to do so felt good.

I think I could push this to at least 100 digits, though the lack of structure to the music makes it increasingly difficult. Little disparate musical phrases start to emerge which serve as anchors, though at some point, it'll become too incoherent to sustain in a simple way.

Making it musical

Making pi musical in standard tuning is difficult. Like I referenced earlier, the tune I came up with could be considered "avant-garde" at best. This is because we're at the mercy of the ever evolving pi, and mapping random digits 0-9 to 1 of 6 strings does not lend itself to pleasant intervals or coherent music. Sure, some interesting phrases will occur (in fact, entire coherent songs will emerge in the fullness of infinity), but making listenable music will be difficult.

Here's what the first 50 notes of the (awful) Pi tune sound like. There were some artistic choices made for rhythm and string choice, but it's ultimately pi mapped to guitar tablature.

pi as guitar tablature
0:00 / 0:00

And here's the tab:

E |----------------------------|----------------------------|
B |----------------------------|----------------------------|
G |----------------------------|----------------------------|
D |----------------------------|----------------------------|
A |-----1--4--1--5-------------|--------6--5--3--5----------|
E |--3-----------------9-------|--2-------------------------|


----------------------------|----------------------------|
----------------------------|----------------------------|
----------------------------|--8--4--------6--4----------|
----------------------------|--------6--2--------3--3----|
--8--9--7--9--3--2--3-------|----------------------------|
----------------------------|----------------------------|


----------------------------|
----------------------------|
--8-------------------------|
-----3--2-------------------|
----------------------------|
----------------------------|


----------------------------------------------------|----------------|
----------------------------------------------------|--1--9--7--1----|
--------------------------------------4-------------|----------------|
--7h-9--5h-0--2-----------8-----8-------------------|----------------|
----------------------------------------------------|----------------|
----------------------------------------------------|----------------|


----------------------------|----------------||
--6h-9--3s-9--9--3--7--5----|--1--0--5-------||
----------------------------|----------------||
----------------------------|----------------||
----------------------------|----------------||
----------------------------|----------------||

Muzak at best. But now I've got 50 digits of pi memorized, so I can't complain.

I suspect there are some novel tunings we could come up with to actually write coherent music that stays in key, regardless of the 0-9 integer jump. Though that's an experiment that will wait for another day.