When I was in eighth grade I got a TI-99/4A for Christmas. I earned half the money for it. I think it cost $200 in 1982 dollars.
One of the things I enjoyed doing was experimenting with random music. I say random, but it was pseudorandom. Unless a RANDOMIZE command was included in the code, every time you ran the program the same sequence of random numbers would occur.
At some point in my experimentation I happened upon a program that produced an especially nice melody. I listened to it enough times that it got stuck in my head. It played a sequence of two-note chords each some increment of 110 Hz, ensuring whatever notes played were a simple, mathematically harmonious musical ratio.
Yesterday, writing my Temperance post, I did some research on different musical temperaments. I learned that perfect mathematical ratios produce a deeply pleasing effect. That made me remember my pseudorandom TI-99 song. Even after 45 years I could still hum it.
I wished I could hear it again.
And then I began to wonder… Could I use a TI-99 emulator to recreate it? I found one called Swift99a and installed it. It worked perfectly, even though the icon is not the 4A model, but the earlier 4 with the inferior chiclet keyboard.
I got right to work. I remembered roughly how I did it, close enough to getting something that resembled it. But it was not the song I remembered. I hypothesized that the range of the random numbers was wrong. I tried the obvious musical quantities. 1-4… 1-8… 1-12…
Then I remembered that my favorite number was 5. 5!
I typed RUN.
And suddenly, after 45 years, there it was.
I call it Stevesong:
Then I got weird, and asked Claude to code me up a fake tape drive. I requested that it make the crazy tape program noises audible. Now I have my program saved on fake cassette.
And here is a screen recording of me loading and running the program on my TI-99 emulator.
Now I am working on getting the interface to look and function exactly like the TI Program Recorder. (Update: It is now up on YouTube.)
Also, I made a terrible cleaned up version of how I remembered the song. Behold, Stevesong2026:
