Skip to content

Web App “Lyrics to Morse Code and MIDI Generator”

When I am not working or spending time with my family, I spend lots of my time playing music.
As a bass guitar player, I mostly create instrumental music and think in terms of rhythm, harmony, and melody.
I like lyrics, but I can’t sing well, so years ago I thought it would be cool to have an app that takes text as input, translates it into Morse code, and exports this as MIDI file. I can then import that file into my Digital Audio Workstation (DAW). There, I can change the pitch of the notes to create melodies while preserving the rhythm to keep the lyrics hidden in Morse code. This allows me to include the text with my songs and tell listeners what the music is about.

I wrote the app in Python ten years ago and used it for my personal projects. As I’ve been testing AI assisted coding lately, I rewrote the app as a small web app in JavaScript, HTML and JavaScript.

Now you can enter text, get the real-time Morse code translation and at the same time see the musical notation of your lyrics. The result can be played as audio or downloaded as PDF or MIDI file.

You find the app here: https://aaulich.github.io/Lyrics-to-Morse-Code-and-MIDI-Generator/

I used PyCharm as my IDE and Junie as AI assistant. The developer experience was great, though I had to manually adapt some parts of the code. Debugging errors still seems to be a challenge for the tools, but when you read this things might already behave much better.