kushagra12 / code_music

Generating music from your code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Music

Wanted to see if codes could speak, so I build up with this small code to combine the sound playing and a lexical analyser to create exactly that.

This is most fun I had with a 20 minutes code, so I decided to share it. Try using different values for different sounds.

Installation

It requires ply which is a python implementation of lex and yacc. Install that from pip

pip install ply

Then you can run it directly.

About

Generating music from your code


Languages

Language:Python 100.0%