What does my program sound like? - cs428TAs/f2026 GitHub Wiki

I love music so I wanted to do something that combined coding and music.

A program that translates code into music

  • Each variable becomes a note. That note plays whenever that variable is used and moves up or down whenever that variable is changed.
  • Each method/function is a chord. If a variable is used in a function, that variables note plays over that functions chord.
  • If/else statements switch between sections.
  • For/while loops loop that section.
  • Each bar is a beat/bar of music.

Extra features:

  • Special variable/function names that let the user choose what note/chord they play so they write code that plays specific songs. (for example: nameing a funciton func_Amin plays an A minor chord)
  • Different datatypes get different instruments.
  • Support for different languages.
  • Different languages play in different keys.

Author: Max Miller